Fetching algorithms...
n = 10
[2, 3, 5, 7]
n = 20
[2, 3, 5, 7, 11, 13, 17, 19]
n = 2
[2]
n = 1
[]
Time Complexity
Space Complexity