Ferencn, on 01 March 2010 - 03:17 AM, said:
i misread 4*x*x+y*y as 4 (x*x+y*y) and obviously that is wrong...
I change it as you say. The output is :
[email protected]:~/Prime Number Program/Atkin$ g++ Atkin.cpp -o Atkin.o
[email protected]:~/Prime Number Program/Atkin$ ./Atkin.o
Number of Prime : 664579
Execution time : 1293 ms.
Which is the original value of number of prime below 10,000,000. Sir can you please explain the bit shift operation you have done.

New Topic/Question
Reply




MultiQuote



|