Explorar el Código

It is in fact spelt "Legendre", not "Legendere"

Petra Lamborn hace 5 años
padre
commit
f1f94e56dc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      lucas.py

+ 1
- 1
lucas.py Ver fichero

@@ -32,7 +32,7 @@ def Dsequence():
32 32
             yield -val
33 33
         val = val + 2
34 34
 
35
-def Legendere(a, p):
35
+def Legendre(a, p):
36 36
     if (p % 2 == 0):
37 37
         raise ValueError("p must be odd, is {}".format(p))
38 38
     lv =  pow(a, (p-1)//2, p)