From b3ff5a7830cb47102e7bf8fd0a1e1bf0d0351c52 Mon Sep 17 00:00:00 2001 From: Foplir <104756080+Foplir@users.noreply.github.com> Date: Tue, 16 Sep 2025 07:59:19 +0000 Subject: [PATCH] =?UTF-8?q?=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20=D0=B2?= =?UTF-8?q?=20=D1=83=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D0=B8=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8,=20d[k]=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=BB=D0=B6=D0=BD=D0=BE=20=D0=B1=D1=8B=D1=82=D1=8C=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BD=D0=BE=20=D0=BD=D1=83=D0=BB=D1=8E,=20=D0=B0?= =?UTF-8?q?=20=D0=BD=D0=B5=20p[k]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/russian/cs/factorization/eratosthenes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/russian/cs/factorization/eratosthenes.md b/content/russian/cs/factorization/eratosthenes.md index acf47749..a264469b 100644 --- a/content/russian/cs/factorization/eratosthenes.md +++ b/content/russian/cs/factorization/eratosthenes.md @@ -87,7 +87,7 @@ int d[n + 1]; vector p; for (int k = 2; k <= n; k++) { - if (p[k] == 0) { + if (d[k] == 0) { d[k] = k; p.push_back(k); }