Extensible prime generator: Difference between revisions

m
Added Delphi reference to Pascal code
m (→‎The functions: corrected heading (=== not ==))
m (Added Delphi reference to Pascal code)
Line 1,094:
It solves the Euler Problem 10 in almost too short a time to be measured, and it becomes useful for ranges of hundreds of thousands. It can count all the primes to a billion on the low end tablet CPU of an Intel x5-Z8350 at 1.92 Gigahertz used to develop this in 40 seconds but using a generator slows the performance and it can use the provided `countPrimesTo` function to do the job four times as fast by directly manipulating the provided iteration of sieved bit-packed arrays.
 
=={{header|Delphi}}==
See [https://rosettacode.org/wiki/Extensible_prime_generator#Pascal Pascal].
=={{header|EchoLisp}}==
Standard prime functions handle numbers < 2e+9. See [http://www.echolalie.org/echolisp/help.html#prime?] . The '''bigint''' library handles large numbers. See [http://www.echolalie.org/echolisp/help.html#bigint.lib]. The only limitations are time, memory, and browser performances ..
478

edits