Gaussian primes: Difference between revisions
m
→{{header|Python}}: docstring
m (→{{header|Python}}: docstring) |
|||
Line 328:
from math import isqrt
''' Task complex norm function '''▼
def norm(c):
▲ ''' Task complex norm function '''
return c.real * c.real + c.imag * c.imag
|