login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070277 Smallest prime ending in n, or 0 if no such prime exists. 1
11, 2, 3, 0, 5, 0, 7, 0, 19, 0, 11, 0, 13, 0, 0, 0, 17, 0, 19, 0, 421, 0, 23, 0, 0, 0, 127, 0, 29, 0, 31, 0, 233, 0, 0, 0, 37, 0, 139, 0, 41, 0, 43, 0, 0, 0, 47, 0, 149, 0, 151, 0, 53, 0, 0, 0, 157, 0, 59, 0, 61, 0, 163, 0, 0, 0, 67, 0, 269, 0, 71, 0, 73, 0, 0, 0, 277, 0, 79, 0, 181, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Antti Karttunen, Table of n, a(n) for n = 1..10000

PROG

(PARI) A070277(n) = if(!(n%2) || !(n%5), isprime(n)*n, my(k=10^#digits(n)); forprime(p=n, oo, if(0==((p-n)%k), return(p)))); \\ Antti Karttunen, Feb 06 2019

CROSSREFS

Sequence in context: A322562 A040118 A099268 * A109864 A231433 A240454

Adjacent sequences:  A070274 A070275 A070276 * A070278 A070279 A070280

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy, May 07 2002

EXTENSIONS

More terms from Larry Reeves (larryr(AT)acm.org), Sep 26 2002

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 18 22:36 EST 2019. Contains 329305 sequences. (Running on oeis4.)