RosettaCodeData/Task/Arithmetic-Rational/PARI-GP/arithmetic-rational.pari
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

5 lines
66 B
Text

for(n=2,1<<19,
s=0;
fordiv(n,d,s+=1/d);
if(s==2,print(n))
)