Ludic numbers: Difference between revisions

m
No edit summary
Line 1,278:
 
=={{header|PARI/GP}}==
Version{{Works with|PARI/GP|2.7.4 and up.above}}
 
<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);
Anonymous user