mary13
Newcomer
I am working on some array exercises and need to be able to find all the primes out of a file of numbers, but I don't know how to write code for determining whether or not a number is prime.
Mary
Mary
blnIsPrime = True
For count = 2 To (currentNumber / 2)
If (currentNumber Mod count) = 0 Then
blnIsPrime = False
End If
Next count
For count = 2 to Sqrt(currentNumber)
...
Next