NEVERMIND, it was that stupid smiley formatting, i missed two colons. Ok it works now :D
Type: Posts; User: brian0918
NEVERMIND, it was that stupid smiley formatting, i missed two colons. Ok it works now :D
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'...
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...
the code should read:
#define WORKAROUND //Uncomment this line to workaround
#include<iostream>
using namespace std;
#ifdef WORKAROUND
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...