Skip to content

Commit

Permalink
use Std.range
Browse files Browse the repository at this point in the history
  • Loading branch information
Seasawher committed Jul 10, 2024
1 parent b1b1f97 commit 20304a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Problem40.lean
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def goldbach (n : Nat) : Nat × Nat := Id.run do
if n % 20 then
panic! "n must be an even number"

for cand in (List.range n) do
for cand in [2:n] do
if not cand.isPrime then
continue
let rest := n - cand
Expand Down

0 comments on commit 20304a6

Please sign in to comment.