Report Bug

QusIn a prime-checking algorithm, the loop typically runs from: QusPrime-checking algorithm की सामान्य time complexity क्या है?


A. 1 to n
B. 2 to n-1
C. 1 to √n
D. 2 to √n


Solution
D. 2 to √n



Explanation
To test primality efficiently, divisors only need to be checked up to √n.

Prime number check करने के लिए √n तक divisibility check करना पर्याप्त होता है।
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad