This code needs to be fixed.  Prime number generator