Smallest prime p such that the sum of the squares of the digits of p equals n (or 0 if no such prime exists).

A187553

Smallest prime p such that the sum of the squares of the digits of p equals n (or 0 if no such prime exists).

Terms

    a(0) =0a(1) =11a(2) =0a(3) =2a(4) =101111a(5) =211a(6) =2111a(7) =101111111a(8) =3a(9) =13a(10) =113a(11) =112121a(12) =23a(13) =21221a(14) =1123a(15) =11213a(16) =41a(17) =1223a(18) =313a(19) =10133a(20) =241a(21) =233a(22) =112223a(23) =21313a(24) =5a(25) =431a(26) =151a(27) =1151a(28) =13313a(29) =251

External references