The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A090924 Least nonzero number having the same number of digits as n which when added to n yields a prime. 0
 1, 1, 2, 1, 2, 1, 4, 3, 2, 13, 12, 11, 10, 15, 14, 13, 12, 11, 10, 11, 10, 15, 14, 13, 12, 11, 10, 13, 12, 11, 10, 11, 10, 13, 12, 11, 10, 15, 14, 13, 12, 11, 10, 15, 14, 13, 12, 11, 10, 11, 10, 15, 14, 13, 12, 11, 10, 13, 12, 11, 10, 11, 10, 15, 14, 13, 12, 11, 10, 13, 12, 11 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,3 LINKS EXAMPLE a(29) = 12 and not 8 though 29+8 =37 is also a prime. a(124) = 103 as 103 is the least three digit number such that 124 +103 = 227 is prime. MATHEMATICA lnzn[n_]:=Module[{k=10^(IntegerLength[n]-1)}, While[!PrimeQ[n+k], k++]; k]; Array[lnzn, 80] (* Harvey P. Dale, Jun 17 2012 *) CROSSREFS Sequence in context: A341827 A138567 A103530 * A247074 A160595 A105778 Adjacent sequences: A090921 A090922 A090923 * A090925 A090926 A090927 KEYWORD base,easy,nonn AUTHOR Amarnath Murthy, Dec 21 2003 EXTENSIONS More terms from David Wasserman, Feb 15 2006 STATUS approved

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

Last modified March 21 16:33 EDT 2023. Contains 361408 sequences. (Running on oeis4.)