Completed highly inefficient prime generation.  Needs revision but works.