Alright, so I was doing some project Euler stuff and am on # 3. My code seems to work for other numbers, but when I do the number required ( 600851475143) I get a different answer each time and none of them have been the correct one :(
Success! Thanks so much! I had tried long before and it didn't work. Long int doesn't work either, but long long does. What exactly is the difference between all of those?
Nope, not always! It's only on some really old system with a 16-bit int. Otherwise, they're the same. Short is ALWAYS 16, long is LAWAYS 32, and long long is ALWAYS 64 bits, and int can vary, but it's a very reasonable assumpiton that it's 32 bits.