Skip to content

Commit 44e0761

Browse files
committed
typo
1 parent 7a5c82e commit 44e0761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Primes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ function lucas_test(n::T) where T<:Signed
260260
trail = trailing_zeros(k)
261261
k >>= trail
262262
# get digits 1 at a time since digits allocates
263-
for b in ndigits(p,base=2)-2:-1:0
263+
for b in ndigits(k,base=2)-2:-1:0
264264
U = mod(U*V, n)
265265
V = mod(V * V - Qk - Qk, n)
266266
Qk = mod(Qk*Qk, n)

0 commit comments

Comments
 (0)