Refactor, no need to check all numbers