Skip to content

Latest commit

 

History

History
34 lines (32 loc) · 337 Bytes

File metadata and controls

34 lines (32 loc) · 337 Bytes

SearchPrimeNumbers

Sundarams Sieve / Eratosthenes Sieve - simple method for finding prime numbers

I wrote this scripts, after i had read this note https://habr.com/ru/post/465737/.

Example

ruby SundaramsSieve.rb 100 (or ruby EratosthenesSieve.rb 100)
2
3
5
7
11
13
17
19
23
29
31
37
41
43
47
53
59
61
67
71
73
79
83
89
97