RosettaCodeData/Task/Arithmetic-Rational/PARI-GP/arithmetic-rational.pari

6 lines
66 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
for(n=2,1<<19,
s=0;
fordiv(n,d,s+=1/d);
if(s==2,print(n))
)