Project Euler problem 3, primes array building