From 999bbde4ca135888ebb6972ffc3f50b2e9a93401 Mon Sep 17 00:00:00 2001 From: Shreya <52084473+sshreya2912@users.noreply.github.com> Date: Thu, 1 Oct 2020 19:37:50 +0530 Subject: [PATCH] Update isPrimeCrive.cpp //making it more understandable --- Number Theory/isPrimeCrive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Number Theory/isPrimeCrive.cpp b/Number Theory/isPrimeCrive.cpp index d950e19..5bb6386 100644 --- a/Number Theory/isPrimeCrive.cpp +++ b/Number Theory/isPrimeCrive.cpp @@ -14,6 +14,6 @@ void findPrime(int n) { for(i=3; i*i<=n; i+=2) if(isPrime[i]) - for(j=i*i; j<=n; j+=i) + for(j=i*i; j<=n; j=j+i) isPrime[j] = 0; -} \ No newline at end of file +}