1
0
forked from kalmar/DALGLI0

Zaktualizuj 'hw4.py'

This commit is contained in:
Aleksy Wróblewski 2018-06-27 17:57:28 +00:00
parent b34b9a42fb
commit d918bd989e

2
hw4.py
View File

@ -62,7 +62,7 @@ class QuotientRing():
nils = []
phi = len([ i for i in range(1, self.m) if gcd(i, self.m) == 1 ])
for zero_div in self.zero_divisors:
for i in range(self.m):
for i in range(phi+1):
if len((zero_div ** i % self.f).poly) == 0:
nils.append(zero_div)
break