Sieve of Pritchard: Difference between revisions
m
→{{header|Pascal}}: fpc 3.2.2 does the job. My old fpc 3.3.1 can't run " SetLength( smallPrimes, SP_STEP);" , maybe installation problem.
m (→{{header|Pascal}}: fpc 3.2.2 does the job. My old fpc 3.3.1 can't run " SetLength( smallPrimes, SP_STEP);" , maybe installation problem.) |
|||
Line 419:
=={{header|Pascal}}==
{{works with|Free Pascal}}
A console program written in Delphi 7. It follows the algorithm in the Wikipedia article "Sieve of Pritchard".
<syntaxhighlight lang="pascal">
|