Integer Max

Working on a Project Euler problem and the question asks for the largest prime number that is a factor of 600851475143. As you can see, this is significantly larger than the maximum of a long data type, which maxes out at 2147483647. Any ideas around this?

I'm running on Windows 32, so int64 is not a valid option for me. It seems like I'll likely have to use a different language to solve this problem.
have u tried using int64?
Use a bignum library.
have you tried using long long int?
sizeof (__int64) = sizeof (long long int) = 8 using MinGW X86, so it will work in your case.
Topic archived. No new replies allowed.