Ver código fonte

Comment fast lucas algo

Petra Lamborn 5 anos atrás
pai
commit
9ca0812f29
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2
    0
      lucas.py

+ 2
- 0
lucas.py Ver arquivo

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