[go: up one dir, main page]

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

Showing entries 1-10 | older changes
Smallest prime which when appended to n produces a prime.
(history; published version)
#12 by Harvey P. Dale at Mon Aug 26 10:40:26 EDT 2019
STATUS

editing

approved

#11 by Harvey P. Dale at Mon Aug 26 10:40:23 EDT 2019
MATHEMATICA

sp[n_]:=Module[{p=3}, While[CompositeQ[n*10^IntegerLength[p]+p], p= NextPrime[ p]]; p]; Array[sp, 100] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 26 2019 *)

STATUS

approved

editing

#10 by Jon E. Schoenfield at Sun Mar 29 19:40:14 EDT 2015
STATUS

editing

approved

#9 by Jon E. Schoenfield at Sun Mar 29 19:40:12 EDT 2015
MATHEMATICA

f[n_] := Block[{p = 2, a = IntegerDigits[n]}, While[ !PrimeQ[ FromDigits[ Join[a, IntegerDigits[ Prime[p]]] ]], p++ ]; Prime[p]]; Table[ f[n], {n, 92}] (from * _Robert G. Wilson v _, Aug 20 2004 *)

PROG

(PARI) A096915(n) = { local(p=1); until(isprime(eval(Str(n, p=nextprime(p+2)))), ); p} [From _\\ _M. F. Hasler_, Jan 05 2009]

STATUS

approved

editing

#8 by Charles R Greathouse IV at Wed Oct 09 14:17:20 EDT 2013
AUTHOR

_Bodo Zinser (BodoZinser(AT)CosmoData.net), _, Aug 18 2004

Discussion
Wed Oct 09
14:17
OEIS Server: https://oeis.org/edit/global/1996
#7 by Charles R Greathouse IV at Sat Jul 14 11:32:17 EDT 2012
PROG

(PARI) A096915(n) = { local(p=1); until(isprime(eval(Str(n, p=nextprime(p+2)))), ); p} [From _M. F. Hasler (www.univ-ag.fr/~mhasler), _, Jan 05 2009]

EXTENSIONS

Cross-reference to indices of records corrected by _M. F. Hasler (www.univ-ag.fr/~mhasler), _, Jan 14 2009

Discussion
Sat Jul 14
11:32
OEIS Server: https://oeis.org/edit/global/1815
#6 by Russ Cox at Fri Mar 30 17:31:05 EDT 2012
EXTENSIONS

More terms from _Robert G. Wilson v (rgwv(AT)rgwv.com), _, Aug 20 2004

Discussion
Fri Mar 30
17:31
OEIS Server: https://oeis.org/edit/global/156
#5 by N. J. A. Sloane at Thu Nov 11 07:34:06 EST 2010
LINKS

T. D. Noe, <a href="/A096915/b096915.txt">Table of n, a(n) for n=1..10000</a>

KEYWORD

nonn,base,new

#4 by N. J. A. Sloane at Sun Jul 11 03:00:00 EDT 2010
PROG

(PARI) A096915(n) = { local(p=1); until(isprime(eval(Str(n, p=nextprime(p+2)))), ); p} [From M. F. Hasler (MHasler(AT)www.univ-ag.fr/~mhasler), Jan 05 2009]

KEYWORD

nonn,base,new

EXTENSIONS

Cross-reference to indices of records corrected by M. F. Hasler (MHasler(AT)www.univ-ag.fr/~mhasler), Jan 14 2009

#3 by N. J. A. Sloane at Fri Feb 27 03:00:00 EST 2009
COMMENTS

Record indices of this sequence are n=1, 3, 14, 71, 76, 131, 188, 196, 232, 314, 535, 695, 1451, 2474, 3868, 7717, 41284, 52462, 90760, 119008, 264433, 487534, 618691, 935477, 959456,... corresponding to record values a(n)=3, 7, 23, 29, 43, 47, 59, 61, 79, 89, 97, 131, 179, 239, 283, 313, 367, 373, 379, 541, 577, 601, 607, 617, 857. [From M. F. Hasler (MHasler(AT)univ-ag.fr), Jan 05 2009]

LINKS

T. D. Noe, <a href="b096915.txt">Table of n, a(n) for n=1..10000</a>

CROSSREFS

Cf. A088606, A089777 (the resulting primes). Records: A137177, A144593.

KEYWORD

nonn,base,new

EXTENSIONS

Cross-reference to indices of records corrected by M. F. Hasler (MHasler(AT)univ-ag.fr), Jan 14 2009