login
a(n) = the n-th prime with sum of decimal digits = n, or 0 if no such number exists.
0

%I #15 Feb 16 2025 20:34:25

%S 0,11,0,211,131,0,313,503,0,433,353,0,643,653,0,1069,881,0,1693,2459,

%T 0,3469,4289,0,6379,6983,0,9883,9857,0,19759,32999,0,49597,58679,0,

%U 79867,89669,0,167899,268979,0,467899,498689,0,699697,799859,0,998779,2499989

%N a(n) = the n-th prime with sum of decimal digits = n, or 0 if no such number exists.

%F a(3n) = 0.

%e a(7) = 313, 313 is the 7th prime with digit sum 7. The smaller six primes are 7, 43, 61, 151, 223, and 241.

%K nonn,base,less,changed

%O 1,2

%A _Amarnath Murthy_, Sep 19 2002

%E More terms from _David Wasserman_, Jan 16 2005

%E a(7) corrected by _Sean A. Irvine_, Feb 16 2025