formatting
generating params

p = p1*p2 + 1
p1 - prime
p2 = 2
finding p1 such as p is prime
so "a" is a primitive element if a!=p1 and a!=2