Final code for testing for all numbers