Also, you have another problem. You're getting numbers that are not prime numbers. Prime numbers, by definition, are numbers that have two positive number divisors; one and itself.
for example, 15 is not a prime number by definition(it's a composite number). 15 could be divided like 15/1, 15/3, 15/5, 15/15. However, numbers like 13 and 2 are only divisible by themselves and by one. This is what you need to take into consideration.be