I need to find The prime factors of 13195 are 5, 7, 13 and 29. / * Largest is 377. * / What is the largest prime factor of the number 600851475143 ?
#include<
You need to add an L as suffix to a number that overflow MAX INT, so this line:
L
long value, large = 600851475143;
Should be:
long value, large = 600851475143L; // ^