# how to check element A and B are field element? for following code

`p=(2^131) p1=GF(p) F1.<x>=GF(2)[] F.=GF(2^3,'a',modulus=x^3+x+1);F.modulus();F for i,x in enumerate(F): print("{} {}".format(i, x))

A=a^2+a;A B=a+1

E = EllipticCurve(F, (1,A,0,0,B));`

It's not clear what you are asking for. Please edit or comment to clarify.

p=(2^3) F1.<x>=GF(2)[] F.=GF(2^3,'a',modulus=x^3+x+1);F.modulus(); for i,x in enumerate(F): print("{} {}".format(i, x))

A=a^2+a;A B=a+1

E = EllipticCurve(F, (1,A,0,0,B));Eenter code here