Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Working with large numbers

Name: Anonymous 2010-09-27 19:45

I'm creating a program in C that factors a really, really large number(600851475143). What data type should I be using?
Also, my compiler told me that I cannot use the modulus operator with the previously stated number and long type number. How do I fix this?

Name: Anonymous 2010-09-27 19:47

Use long long, and declare the number as 600851475143LL

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List