[go: up one dir, main page]

login
A077648
Initial digits of prime numbers.
15
2, 3, 5, 7, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 7, 8, 8, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5
OFFSET
1,1
LINKS
FORMULA
a(n) = A000030(A000040(n)).
MATHEMATICA
Table[First[IntegerDigits[Prime[n]]], {n, 1, 120}]
PROG
(Magma) [Intseq(p)[#Intseq(p)]: p in PrimesUpTo(600)]; // Bruno Berselli, Feb 14 2013
(PARI) a(n) = digits(prime(n))[1]; \\ Michel Marcus, Feb 11 2017
(Python)
from sympy import prime
def A077648(n): return int(str(prime(n))[0]) # Chai Wah Wu, Oct 16 2024
CROSSREFS
Sequence in context: A230200 A113493 A060420 * A033308 A134690 A295868
KEYWORD
base,nonn
AUTHOR
Labos Elemer, Nov 19 2002
STATUS
approved