ソースを参照

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