A little cleaner primality test and array populate
WIP