You are given an integer n.
Your task is to find and return a list of all prime numbers less than or equal to n.
Note that:
Return a list containing all prime numbers less than or equal to n.
10
[2, 3, 5, 7]
The prime numbers less than or equal to 10 are 2, 3, 5, and 7.
3
[2, 3]
The prime numbers less than or equal to 3 are 2 and 3.
1
[]
There are no prime numbers less than or equal to 1.
10
[2, 3, 5, 7]