|
|
A157034
|
|
Shorthand for A157033, the smallest prime with 2^n digits.
|
|
4
|
|
|
1, 1, 9, 19, 37, 33, 121, 283, 37, 241, 3259, 2823, 67017, 13989, 9523, 34281
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
|
|
MAPLE
|
a:= n-> (t-> nextprime(t)-t)(10^(2^n-1)):
|
|
MATHEMATICA
|
f[n_] := NextPrime[ 10^(2^n-1)] - 10^(2^n-1); Table[ f@n, {n, 0, 12}] (* Robert G. Wilson v, Mar 17 2009 *)
|
|
PROG
|
(Python)
from sympy import nextprime
def A157034(n): return 1 if n == 0 else nextprime(10**(2**n-1))-10**(2**n-1) # Chai Wah Wu, Apr 16 2021
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|