As I wrote before: you need a 'big integer' package; several are available, Google is your friend. About the definition of S(n): if it is what I think it is it's the sum of all proper divisors of n except n itself, e.g. S(6) == 1+2+3 = 6; S(28) == 1+2+4+7+14 == 28. When you see large primes you see perfect numbers around the corner (a perfect number equals the sum of its divisors, i.e. n == S(n)).
kind regards,
Jos
kind regards,
Jos
Comment