Can anyone help in writing a code to find the list of idempotent and primitive elements of a group algebra, the examples goes like this. Let p be an odd prime such that ˉ2 generates U(Zp2) and G=(ideal generated by a)∗ (ideal generated by b) an abelian group, with o(a)=p2 and o(b)=p. Then F2G has four inequivalent minimal codes, namely, the ones generated by the idempotents e0=ˆG, e1=ˆb−^(idealgeneratedby′a′)∗(idealgeneratedby′b′)(note: its a big hat), e2=^a−G and e3=^(idealgeneratedby′a′p)∗(idealgeneratedby′b′)−ˆG.