From aa7558f378a7a714a3792bc372533eeed31aa05d Mon Sep 17 00:00:00 2001 From: mohammad_javad_cloner <75130037+mohammmad357@users.noreply.github.com> Date: Sun, 11 Oct 2026 20:30:49 +0330 Subject: [PATCH] fix: allow repeated primes in Goldbach pairs --- maths/primelib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maths/primelib.py b/maths/primelib.py index 2625b78d7825..a9723b308070 100644 --- a/maths/primelib.py +++ b/maths/primelib.py @@ -417,7 +417,7 @@ def goldbach(number: int) -> list[int]: loop = True while i < len_pn and loop: - j = i + 1 + j = i while j < len_pn and loop: if prime_numbers[i] + prime_numbers[j] == number: