πŸ“Š Problem Solving and Python Programming
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) a list of non prime numbers, up to 50

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.


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