a(n) is the smallest prime number, with sum of digits equals n and a(n) is greater than previous nonzero terms, except if this is not possible in which case a(n)=0.

A282342

a(n) is the smallest prime number, with sum of digits equals n and a(n) is greater than previous nonzero terms, except if this is not possible in which case a(n)=0.

Terms

    a(0) =0a(1) =2a(2) =3a(3) =13a(4) =23a(5) =0a(6) =43a(7) =53a(8) =0a(9) =73a(10) =83a(11) =0a(12) =139a(13) =149a(14) =0a(15) =277a(16) =359a(17) =0a(18) =379a(19) =389a(20) =0a(21) =499a(22) =599a(23) =0a(24) =997a(25) =1889a(26) =0a(27) =1999a(28) =2999a(29) =0

External references