fix prime detection
[python] add sum of primes