number 2 in range brute force - not efficient