[solved] – Question 92391
Consider the following function f.
def f(n):
s=0
for i in range(1,n+1):
if n%i == 0:
s = s+1
return(s%2 == 1)
The function f(n) given above returns True for a positive number n if and only if:
n is an odd number.
n is a prime number.
n is a composite number.
n is a perfect square.
Expert Answer
OR

