The sieve of Sundaram: Difference between revisions
Content added Content deleted
(→{{header|Python}}: Added a functional variant.) |
|||
Line 511: | Line 511: | ||
from math import floor, log, sqrt |
from math import floor, log, sqrt |
||
from itertools import islice |
from itertools import islice |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
Line 541: | Line 528: | ||
if not x in exclusions |
if not x in exclusions |
||
] |
] |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||