Print the prime numbers in the range [1,10].
Asked in the Technical interview stage. Candidate got stuck on this one.
Implement print_primes() with no arguments. It must return the prime numbers from 1 through 10 in ascending order. A prime number is an integer greater than 1 with exactly two positive divisors.
Return a list of integers. The expected result is [2, 3, 5, 7].
def print_primes():