M

Mr. Dubey • 52.77K Points
Coach

Q. , i)]

(A) a list of prime numbers up to 50
(B) a list of numbers divisible by 2, up to 50
(C) a list of non prime numbers, up to 50
(D) error
Share

Explanation by: Mr. Dubey
 the list comprehension shown above returns a list of non-prime numbers up to 50. the logic behind this is that the square root of 50 is almost equal to 7. hence all the multiples of 2-7 are not prime in this range.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Loading Comments....

Question analytics