Hopefully limit time needed

Limit the domain of numbers checked to see if they are prime factors.