Tested for first 20 numbers