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.

A127003 Smallest prime p such that p+10^n is also prime.

This page as a plain text file.
%I A127003 #10 Dec 29 2024 22:31:09
%S A127003 2,3,3,13,7,3,3,19,7,7,19,3,61,37,31,37,61,3,3,97,151,193,139,157,7,
%T A127003 13,67,103,331,379,211,271,709,61,193,103,67,43,547,3,139,109,991,79,
%U A127003 31,439,937,193,193,2089,151,457,919,223,31,157,3,607,601,19,7,379,991,307
%N A127003 Smallest prime p such that p+10^n is also prime.
%H A127003 Pierre CAMI, <a href="/A127003/b127003.txt">Table of n, a(n) for n = 0..1000</a>
%e A127003 a(3)=13 because 13 is the smallest prime p such that p+10^3 (=1013) is also prime: For the primes < 13, 1002=2*3*167, 1003=17*59, 1005=3*5*67, 1007=19*53 and 1011=3*337, respectively, are not prime.
%t A127003 s={};Do[p=0;Until[PrimeQ[Prime[p]+10^n],p++];AppendTo[s,Prime[p]],{n,0,63}];s (* _James C. McMahon_, Dec 29 2024 *)
%Y A127003 Cf. A127004, A056206.
%K A127003 nonn
%O A127003 0,1
%A A127003 _Rick L. Shepherd_, Jan 01 2007