Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A120805
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A120805 Primes with consecutive digits. +0
3
2, 3, 5, 7, 23, 43, 67, 89, 109, 4567, 10987, 76543, 78901, 678901, 23456789, 45678901, 9012345678901, 789012345678901, 56789012345678901234567890123, 90123456789012345678901234567, 10987654321098765432109876543210987 (list; graph; listen)
OFFSET

1,1

COMMENT

Digits can be in ascending or descending order. After 9 comes 0 or after 0 comes 1.

The number of primes with n consecutive digits: 4,4,1,1,3,1,0,2,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,...,.

MATHEMATICA

f[n_] := Block[{u = Range@n, d = Reverse@ Range@n, t = Table[1, {n}]}, Select[ Drop[ Union@ Flatten@ Table[ FromDigits /@ Mod[{u, d} + {i*t, i*t}, 10], {i, 10}], 2], PrimeQ@# &]]; Array[f, 35] // Flatten

CROSSREFS

Cf. A000040, A118697; union of A006055 & A120804.

Adjacent sequences: A120802 A120803 A120804 this_sequence A120806 A120807 A120808

Sequence in context: A048398 A059170 A068710 this_sequence A096265 A056041 A083017

KEYWORD

nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Jul 05 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 6 16:13 EDT 2008. Contains 144667 sequences.


AT&T Labs Research