Anonymous user
Ludic numbers: Difference between revisions
m
→{{header|PARI/GP}}
No edit summary |
|||
Line 1,278:
=={{header|PARI/GP}}==
<lang PARI/GP>
\\ Creating Vlf - Vector of ludic numbers' flags,
\\ where the index of each flag=1 is the ludic number.
ludic(maxn)={my(Vlf=vector(maxn,z,1),n2=maxn/2,k,j1);
for(i=2,n2,
Line 1,291 ⟶ 1,293:
{
\\ Required tests:
my(Vr,L=List(),k=0,maxn=25000);
Vr=ludic(maxn);
|