Codes: part 2

a(n)=for(i=1,n,if((sigma(i)-2*i)==0,print(i)))

Advertisements