Sieve of Eratosthenes: Difference between revisions
Content deleted Content added
Line 5,707: | Line 5,707: | ||
=={{header|EasyLang}}== |
=={{header|EasyLang}}== |
||
<syntaxhighlight lang="text"> |
<syntaxhighlight lang="text"> |
||
len |
len is_divisible[] 100 |
||
max = sqrt len |
max = sqrt len is_divisible[] |
||
for |
for d = 2 to max |
||
if |
if is_divisible[d] = 0 |
||
i = |
for i = d * d step d to len is_divisible[] |
||
⚫ | |||
while i <= len divisible[] |
|||
⚫ | |||
i += tst |
|||
. |
. |
||
. |
. |
||
. |
. |
||
for i = 2 to len |
for i = 2 to len is_divisible[] |
||
if |
if is_divisible[i] = 0 |
||
print i |
print i |
||
. |
. |