modified exercise 1.22 for comparison with 1.23, the changes were not really that significant on small numbers ( n < 1000000 ) but it was on larger ones, and yes, even thought it was small, it is still improvement in terms of time