xrange -> range

Updating primes for python 2/3 compatibility