A083975 Smallest palindromic prime containing exactly n 4's.
11411, 14341, 1464641, 1447441, 1444441, 144404441, 14244444241, 34444344443, 74444444447, 1444447444441, 3444444444443, 144444454444441, 14144444444444141, 34444444044444443, 1414444444444444141, 1444444447444444441, 104444444444444444401
Offset: 1
Links
- Chai Wah Wu, Table of n, a(n) for n = 1..500
Programs
-
Mathematica
Table[d = 4; i = 1; While[ x = IntegerDigits[Prime[i]]; x != Reverse[x] || Count[x, d] != n , i++]; FromDigits[x], {n, 1, 6}] (* Robert Price, Mar 25 2019 *)
Extensions
More terms from Ray G. Opao, Sep 20 2004
Corrected and extended by Giovanni Resta, Feb 08 2006