getting exact numbers

hey, im working on a problem on project euler where i have to find the sum of all primes under 2 million. The answer im getting is in scientific notation. Is there some way to make the program give me the exact answer?
Thanks in advance
Primes are integers so use integer data types instead of floating point data types.
yeah but the answer is in terms of the power 11
unsigned long has a range of about 4 to the power 9,
is there a larger data type i dont know of?
If your compiler supports it you can use unsigned long long.
thanks tht seemed to do the trick:D
Topic archived. No new replies allowed.