OFFSET
1,1
MATHEMATICA
f[n_] := Block[{k = 2, m = n}, While[ IntegerDigits[k*m][[1]] != 6, k++ ]; k*m]; Table[ f[ Prime[n]], {n, 1, 55}]
PROG
(Python)
from sympy import prime
def a(n):
pn = prime(n)
m = 2*pn
while str(m)[0] != '6': m += pn
return m
print([a(n) for n in range(1, 53)]) # Michael S. Branicky, Jun 06 2021
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Nov 26 2002
EXTENSIONS
Edited, corrected and extended by Robert G. Wilson v, Nov 29 2002
STATUS
approved