From dc2c2188497ad0a35da2b966f413d105d362ff16 Mon Sep 17 00:00:00 2001 From: xenkaley Date: Mon, 10 Aug 2026 10:01:58 +0300 Subject: [PATCH] Update eratosthenes.md error --- eratosthenes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eratosthenes.md b/eratosthenes.md index 9d409d9..31a1db4 100644 --- a/eratosthenes.md +++ b/eratosthenes.md @@ -86,7 +86,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); }