in reply to Math help: Finding Prime Numbers

You might also want to see Simple primality testing.