remainder is 0 when number/a is a integer. For example my code gets numbers from 1 to number and checks how many times the remainder is 0. So number/number= 0(meaning remander) and number/1=0(meaning remainder)
so that means count only equals 2 then it is prime else it is not prime.