Computer Science, asked by LankaYohannan694, 1 year ago

prove that Zn is a field if and only if n is prime


akshayegreat: do you want a program?? on it

Answers

Answered by akshayegreat
0
class do1
{
     void main(int n)
     {
String ans="";
           for(int i=2;i<=n/2;i++)
           {
if(n%i==0)
{
ans="Zn is a field";
}
else
{
ans="Not a Field"
}
     }
   }
}


Similar questions