OFFSET
1,1
COMMENTS
From Petros Hadjicostas, Nov 20 2019: (Start)
Version 1 of the "next prime" function is A007918: smallest prime >= n. PARI/GP's nextprime() is version 1.
Maple's nextprime() is the version 2 that appears in A151800: smallest prime > n. We use version 2 here. (End)
EXAMPLE
From Petros Hadjicostas, Nov 20 2019: (Start)
a(1) = 12 because nextprime(1) = 2.
a(2) = 23 because nextprime(2) = 3.
a(3) = 35 because nextprime(3) = 5.
a(4) = 45 because nextprime(4) = 5.
...
a(10) = 1011 because nextprime(10) = 11.
a(11) = 1113 because nextprime(11) = 13.
... (End)
MAPLE
a:= n-> parse(cat(n, nextprime(n))):
seq(a(n), n=1..50); # Alois P. Heinz, Nov 20 2019
PROG
(PARI) a(n) = eval(concat(Str(n), Str(nextprime(n+1)))); \\ Michel Marcus, Jan 01 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved