[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Revision History for A120827 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Primes with n consecutive digits ascending beginning with the digit nine.
(history; published version)
#6 by Harvey P. Dale at Sun Sep 06 16:41:56 EDT 2015
STATUS

editing

approved

#5 by Harvey P. Dale at Sun Sep 06 16:41:52 EDT 2015
MATHEMATICA

Flatten[Position[Table[FromDigits[PadRight[{}, n, {9, 0, 1, 2, 3, 4, 5, 6, 7, 8}]], {n, 100}], _?PrimeQ]] (* Harvey P. Dale, Sep 06 2015 *)

STATUS

approved

editing

#4 by Russ Cox at Fri Mar 30 17:37:44 EDT 2012
COMMENTS

There is no further term up to 26000. - _Farideh Firoozbakht (mymontain(AT)yahoo.com), _, Sep 11 2006

Discussion
Fri Mar 30
17:37
OEIS Server: https://oeis.org/edit/global/181
#3 by Russ Cox at Fri Mar 30 17:31:20 EDT 2012
AUTHOR

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

Discussion
Fri Mar 30
17:31
OEIS Server: https://oeis.org/edit/global/156
#2 by N. J. A. Sloane at Fri May 11 03:00:00 EDT 2007
KEYWORD

base,bref,hard,nonn,new

#1 by N. J. A. Sloane at Fri Sep 29 03:00:00 EDT 2006
NAME

Primes with n consecutive digits ascending beginning with the digit nine.

DATA

13, 29, 43

OFFSET

1,1

COMMENTS

Digits are in ascending order beginning with 9 and after 9 comes 0.

The sequence "Primes with n consecutive digits descending beginning with the digit nine" has no terms.

There is no further term up to 26000. - Farideh Firoozbakht (mymontain(AT)yahoo.com), Sep 11 2006

EXAMPLE

13 is a term since 9012345678901 is a prime.

MATHEMATICA

fQ[n_] := PrimeQ@ FromDigits@ Mod[8+Range@n, 10]; lst = {}; Do[ If[fQ@n, AppendTo[lst, n]; Print@n], {n, 5000}]; lst

KEYWORD

base,bref,hard,nonn,new

AUTHOR

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

STATUS

approved