Browse Source

Comment fast lucas algo

Petra Lamborn 5 years ago
parent
commit
9ca0812f29
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      lucas.py

+ 2
- 0
lucas.py View File

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