Fixed the program to be inclusive of the input number

Fixed the program to only test divisor up to the sqrt of the input number.Also fixed output to be inclusive of input number