瀏覽代碼

Comment fast lucas algo

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

+ 2
- 0
lucas.py 查看文件

@@ -129,6 +129,8 @@ def LucasVn(n, p, q):
129 129
 
130 130
 
131 131
 def LucasFast(k, p, q, n):
132
+    """Faster Lucas algorithm, modulo a number
133
+    """
132 134
     if k < 0:
133 135
         raise ValueError("k must be a non-negative integer")
134 136
     if n < 1: