Sieve of Eratosthenes: Difference between revisions
m
→{{header|Microsoft Small Basic}}: a correction
PatGarrett (talk | contribs) m (→{{header|Microsoft Small Basic}}: a correction) |
|||
Line 6,286:
For n = 2 To math.SquareRoot(limit)
If flags[n] = 0 Then
For K = n * n To limit Step
flags[K] = 1
EndFor
|