Jump to content

Count in factors: Difference between revisions

→‎{{header|Haskell}}: comment about real solution being a segmented offset sieve
(→‎{{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}}==
751

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.