Q41
Computer ScienceChapter 04c: Python — Modules, Packages & Libraries
Question No. 41
Problem Statement

Find the error in the following program and correct it: def is_prime(n): if n < 2: return False for i in range(2, n+1): if n % i == 0: return False return True print(is_prime(17))

High Frequency SEE Question Difficulty: Moderate

Need help memorizing these 4 formulas?

Review the Master Formula Cheat Sheet curated by SEE gold medalists.

Open Formula Sheet →
Question 41 of 67(Compulsory Math SEE Bank)
59.7%