瀏覽代碼

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

Petra Lamborn 5 年之前
父節點
當前提交
f1f94e56dc
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      lucas.py

+ 1
- 1
lucas.py 查看文件

@@ -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)