Users Pricing

forum

home / developersection / forums / generate a list of all even, odd and prime numbers up to n in python with explanation

Generate a list of all even, odd and prime numbers up to n in python with explanation

Anubhav Sharma 503 23 Apr 2025

Using list comprehension.


Anubhav Sharma

Student

The Anubhav portal was launched in March 2015 at the behest of the Hon'ble Prime Minister for retiring government officials to leave a record of their experiences while in Govt service .


1 Answers