Skip to content

Commit 7dc85ad

Browse files
committed
improve bounds
1 parent 00ea174 commit 7dc85ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Primes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ function lenstrafactor(n::T) where{T<:Integer}
536536
# https://www.rieselprime.de/ziki/Elliptic_curve_method
537537
B1s = Int[2e3, 11e3, 5e4, 25e4, 1e6, 3e6, 11e6,
538538
43e6, 11e7, 26e7, 85e7, 29e8, 76e8, 25e9]
539-
runs = (74, 221, 453, 984, 2541, 4949, 8266, 20158,
540-
47173, 77666, 42057, 69471, 102212, 188056, 265557)
539+
runs = Int[25, 90, 300, 700, 1800, 5100, 1800, 10600,
540+
19300, 49000, 124000, 210000, 340000, 10^6, 10^7]
541541
for (B1, run) in zip(B1s, runs)
542542
small_primes = primes(B1)
543543
for a in -run:run

0 commit comments

Comments
 (0)