Project Euler 357 Prime generating integers