modified 3 5 and 7 to use my own prime number genration