A331868 Numbers k for which R(k) + 4*10^floor(k/2-1) is prime, where R(n) = (10^n-1)/9 (repunit: A002275).
4, 147, 270, 1288, 1551, 3427
Offset: 1
Examples
For n = 4, R(4) + 4*10^floor(4/2-1) = 1151 is prime. For n = 5, R(5) + 4*10^floor(5/2-1) = 11151 = 3^3*7*59 is not prime. For n = 147, R(147) + 4*10^72 = 1(74)51(72) is prime, where (.) indicates how many times the preceding digit is repeated.
Links
- Brady Haran and Simon Pampena, Glitch Primes and Cyclops Numbers, Numberphile video (2015).
- Index to OEIS entries related to primes involving repdigits.
Crossrefs
Programs
-
Mathematica
Select[Range[2, 2500], PrimeQ[(10^# - 1)/9 + 4*10^Floor[#/2 - 1]] &]
-
PARI
for(n=2,9999,isprime(p=10^n\9+4*10^(n\2-1))&&print1(n","))
Extensions
a(6) from Daniel Suteu, Feb 10 2020
Comments