OFFSET
1,1
COMMENTS
For any p in this sequence, 2*p*(8p^2 - 7p + 2) has the same nonzero digits as its prime factors in base 2*p-1.
Apart from 3 itself, all members of this sequence are congruent to 2 (mod 3). This is because for any number congruent to 1 (mod 3), the expression (8n^2 - 7n + 2) would be a multiple of 3 and hence not prime.
LINKS
Ely Golden, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Prime@ Range@ 450, PrimeQ[8 #^2 - 7 # + 2] &] (* Michael De Vlieger, Dec 30 2016 *)
PROG
(SageMath)
c=1
index=1
while(index<=1000):
if((is_prime(c))&(is_prime(8*(c**2)-7*c+2))):
print(str(index)+" "+str(c))
index+=1
c+=1
print("complete")
CROSSREFS
KEYWORD
nonn
AUTHOR
Ely Golden, Dec 30 2016
STATUS
approved