Explanation: 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.
Q. , i)]
β
Correct Answer: (C)
a list of non prime numbers, up to 50
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.
Discussion
Question Analytics
248
Total Visits
2 y ago
Published
Mr. Dubey
Publisher
87%
Success Rate