Search:

Type: Posts; User: brian0918

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,618

    nevermind

    NEVERMIND, it was that stupid smiley formatting, i missed two colons. Ok it works now :D
  2. Replies
    10
    Views
    1,618

    hrmmmmm

    I tried what kuphryn said, and got these errors:

    Compiling...
    primesieve.cpp

    primesieve.cpp(41) : error C2143: syntax error : missing ';' before ':'

    primesieve.cpp(41) : error C2873: 'std'...
  3. Replies
    10
    Views
    1,618

    Saving results to a file

    Currently, I have a for-loop that goes on for a really long time, and each time, at the end, it does this:

    cout << " " << endl;
    cout << a << "x^2 + " << b << "x + " << c << endl;
    cout << primes...
  4. Replies
    7
    Views
    2,332

    another OOPS

    the code should read:



    #define WORKAROUND //Uncomment this line to workaround

    #include<iostream>
    using namespace std;

    #ifdef WORKAROUND
  5. Quicker how? I think my method is as fast as it...

    Quicker how? I think my method is as fast as it gets. It checks 2, then all of the odds up to sqrt(N).... The only thing that might be faster would be to have an array of predetermined numbers (all...
Results 1 to 5 of 5