For example: if I pass a number N (380) to getNumbers method this should return all numbers from 0 to N that satisfy the condition?