For n even >2 the least prime is of the form (2^n)*(10^k)+1 For n odd >2 the least prime is of the form (2^n)*(10^k)-1 Mersenne-primes are in the sequence with a(n)=0 and n prime
EXAMPLE
(2^0)*(10^0)+1=2 prime so a(0)=0
(2^1)*(10^0)+1=3 prime so a(1)=0
(2^2)*(10^0)-1=3 prime as (2^2)*(10^0)+1=5 prime so a(2)=0