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!)
A219248 Numbers such that the absolute difference of any two adjacent (decimal) digits is prime. 7
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 16, 18, 20, 24, 25, 27, 29, 30, 31, 35, 36, 38, 41, 42, 46, 47, 49, 50, 52, 53, 57, 58, 61, 63, 64, 68, 69, 70, 72, 74, 75, 79, 81, 83, 85, 86, 92, 94, 96, 97, 130, 131, 135, 136, 138, 141, 142, 146, 147, 149, 161, 163, 164 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Numbers which may (and do) occur in A219250 and A219249 (union {0}).
This is to A219250 and A219249 what A182175 is to A182177 and A182178.
LINKS
E. Angelini, Any digit-pair in S sums to a prime, SeqFan list, Apr 11 2013
MATHEMATICA
Select[Range[0, 200], And@@PrimeQ[Abs[Differences[IntegerDigits[#]]]]&] (* Harvey P. Dale, Jun 06 2014 *)
PROG
(PARI) is_A219248(n)={!for(i=2, #n=digits(n), isprime(abs(n[i-1]-n[i]))||return)}
CROSSREFS
Sequence in context: A052061 A045540 A119509 * A055568 A360822 A283161
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Apr 12 2013
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 25 08:20 EDT 2024. Contains 371964 sequences. (Running on oeis4.)