[go: up one dir, main page]

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!)
Revision History for A228325 (Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A228325 a(n) is the smallest number m>n such that the concatenation nm is prime.
(history; published version)
#20 by Giovanni Resta at Tue Oct 18 10:45:23 EDT 2022
STATUS

reviewed

approved

#19 by Michel Marcus at Tue Oct 18 10:29:28 EDT 2022
STATUS

proposed

reviewed

#18 by Michael S. Branicky at Tue Oct 18 10:28:48 EDT 2022
STATUS

editing

proposed

#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
STATUS

editing

approved

#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
STATUS

editing

approved

#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

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 August 29 15:03 EDT 2024. Contains 375517 sequences. (Running on oeis4.)