|
|
|
|
#20 by Giovanni Resta at Tue Oct 18 10:45:23 EDT 2022
|
|
|
|
#19 by Michel Marcus at Tue Oct 18 10:29:28 EDT 2022
|
|
|
|
#18 by Michael S. Branicky at Tue Oct 18 10:28:48 EDT 2022
|
|
|
|
#17 by Michael S. Branicky at Tue Oct 18 10:28:45 EDT 2022
|
| PROG
|
(Python)
from sympy import isprime
from itertools import count
def a(n): return next(k for k in count(n+1) if isprime(int(str(n)+str(k))))
print([a(n) for n in range(1, 68)]) # Michael S. Branicky, Oct 18 2022
|
| STATUS
|
approved
editing
|
|
|
|
#16 by N. J. A. Sloane at Fri Nov 13 23:10:22 EST 2020
|
|
|
|
#15 by N. J. A. Sloane at Fri Nov 13 23:10:20 EST 2020
|
| NAME
|
a(n) is the smallest number m>n such that the concatenation nm is prime, or -1 if no such m exists.
|
| COMMENTS
|
IsMax Alekseyev (see therelink ain proofA068695) shows that a(n) always exists?. - _N. J. A. Sloane_, Nov 13 2020
|
| EXTENSIONS
|
Escape clause added to definition by N. J. A. Sloane, Nov 08 2020
Under construction - do not touch - N. J. A. Sloane, Nov 10 2020
|
|
|
|
#14 by N. J. A. Sloane at Wed Nov 11 20:01:11 EST 2020
|
| LINKS
|
<a href="/index/Pri#piden">Index entries for primes involving decimal expansion of n</a>
|
|
|
|
#13 by N. J. A. Sloane at Tue Nov 10 14:18:45 EST 2020
|
| EXTENSIONS
|
Under construction - do not touch - N. J. A. Sloane, Nov 10 2020
|
| STATUS
|
approved
editing
|
|
|
|
#12 by N. J. A. Sloane at Sun Nov 08 01:31:56 EST 2020
|
|
|
|
#11 by N. J. A. Sloane at Sun Nov 08 01:31:51 EST 2020
|
| NAME
|
a(n) is the smallest number m>n such that the concatenation nm is prime, or -1 if no such m exists.
|
| EXTENSIONS
|
Escape clause added to definition by N. J. A. Sloane, Nov 08 2020
|
| STATUS
|
approved
editing
|
|
|
|