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

 

Logo
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
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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)