OFFSET
1,1
COMMENTS
A base 16 variant of A236174.
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
EXAMPLE
For n = 19, 67 is the 19th prime, and written in base 2, ..., is '1000011', '2111', '1003', '232', '151', '124', '103', '74', '67', '61', '57', '52', '4b', '47', '43'. Out of these, when read in as hexadecimal numbers, the first prime is 1003_16 which is 4099_10.
PROG
(Python)
from sympy import prime, isprime
def A253549(n):
....p = prime(n)
....for b in range(2, 17):
........x, y, z = p, 0, 1
........while x >= b:
............x, r = divmod(x, b)
............y += r*z
............z *= 16
........y += x*z
........if isprime(y):
............return y
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Chai Wah Wu, Jan 03 2015
STATUS
approved