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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A095976 Numbers n such that (largest digit of n) + (largest digit of n+1) is prime. 0
1, 2, 3, 5, 6, 8, 10, 11, 12, 13, 15, 16, 18, 19, 22, 23, 25, 26, 28, 33, 35, 36, 38, 39, 45, 46, 48, 55, 56, 58, 66, 68, 78, 79, 88, 100, 101, 102, 103, 105, 106, 108, 110, 111, 112, 113, 115, 116, 118, 119, 122, 123, 125, 126, 128, 133, 135, 136, 138, 139, 145, 146 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

EXAMPLE

12348 is in the sequence because its largest digit 8, plus 9 the largest digit of 12349, is the prime 17.

MATHEMATICA

ldQ[n_]:=Module[{ldn=Max[IntegerDigits[n]], ldn1=Max[IntegerDigits[ n+1]]}, PrimeQ[ldn+ldn1]]; Select[Range[150], ldQ]  (* From Harvey P. Dale, Apr 29 2011 *)

CROSSREFS

Cf. A054055.

Sequence in context: A028755 A187897 A187319 * A187899 A024609 A167056

Adjacent sequences:  A095973 A095974 A095975 * A095977 A095978 A095979

KEYWORD

base,easy,nonn

AUTHOR

Jason Earls (zevi_35711(AT)yahoo.com), Jul 16 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 14:57 EST 2012. Contains 205823 sequences.