Given a number n, print all the prime numbers leading upto n.
Asked in the Director round stage.
Implement the function below. Return a list containing every prime number less than or equal to n, in ascending order. Do not print from inside the function.
Function: def primes_upto(n):
def primes_upto(n):