Count in factors: Difference between revisions
→{{header|Haskell}}: comment about real solution being a segmented offset sieve
(→{{header|Haskell}}: add 2144..) |
(→{{header|Haskell}}: comment about real solution being a segmented offset sieve) |
||
Line 561:
"2 * 3 * 359"
. . .</lang>
The real solution seems to have to be some sort of a segmented offset sieve of Eratosthenes, storing factors in array's cells instead of just marks. That way the speed of production might not be diminishing as much.
=={{header|Icon}} and {{header|Unicon}}==
|