Hamming numbers: Difference between revisions
canonicalized
(canonicalized) |
|||
Line 8,136:
This is a basic implementation; finding the millionth term requires 1 second and 54 MB. Much better algorithms exist.
<syntaxhighlight lang="parigp">Hupto(n)={
my(
for(m=2,n,
if(
if(
if(
);
};
H(n)=Hupto(n)[n];
|