irreducible polynomial code
K.<a>=GF(2^3)
A = [0,1,a,a^2,a^3,a^4,a^5,a^6]
for i=0 in [A]
for j=0 in [A]
f(x)=x^2+A[i]x+A[j]
print f(x)
I have written this code to generate irreducible polynomial f(x) by taking different values from A so it is represent A[i] and A[j] but its gives me error.