cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A075902 Primes p = prime(k) such that the decimal representation of p contains k as a substring.

This page as a plain text file.
%I A075902 #22 Jan 03 2025 14:29:14
%S A075902 17,64553,64567,64577,64591,64601,64661,99551,4303027,6440999,
%T A075902 14968819,95517973,527737957,1893230839,1966640443,1246492090901
%N A075902 Primes p = prime(k) such that the decimal representation of p contains k as a substring.
%C A075902 prime(k) = 1966640443 for k=96664044. This is the first case in which k is an internal string of prime(k). - _Carlos Rivera_, Jun 16 2004
%C A075902 2*10^12 < a(17) <= 12426836115943. a(18) <= 21732382677641. a(19) <= 154895576080181. - _Donovan Johnson_, May 08 2010
%e A075902 Pairs {n, prime(n)}: {7, 17}, {6455, 64553}, {6456, 64567}, {6457, 64577}, {6459, 64591}, {6460, 64601}, {6466, 64661}, {9551, 99551}, {303027, 4303027}, {440999, 6440999}, {968819, 14968819}, {5517973, 95517973}.
%t A075902 Prime[Select[Range[10^6], StringContainsQ[ToString[Prime[#]], ToString[#]] & ]] (* _Robert Price_, May 27 2019 *)
%o A075902 (Python)
%o A075902 from sympy import primerange
%o A075902 [print(i,end=', ') for n,i in enumerate(primerange(1,10**7)) if str(n+1) in str(i)] # _Nicholas Stefan Georgescu_, Jan 03 2025
%Y A075902 Cf. A067248, A046883, A075902.
%K A075902 more,base,nonn
%O A075902 1,1
%A A075902 _Zak Seidov_, Sep 27 2002
%E A075902 3 more terms from _Carlos Rivera_, Jun 16 2004
%E A075902 a(16) from _Donovan Johnson_, May 08 2010