N-smooth numbers: Difference between revisions
Clearer again.
(Clearer again.) |
|||
Line 2,351:
=={{header|PARI/GP}}==
<syntaxhighlight lang="pari">
Vi_smooth( V0, C= 20)= {
my(
for(
,
for(
, if( v[
);
);
V_r
}
N_smooth(N,C)= Vi_smooth(primes([0,N]),C)
S7(C)= N_smooth(7,C)[C]
S7(1691)
S7(10^6)
my(p=509,
</syntaxhighlight>
{{out}}
|