i didn’t understand ….why only prime number .. any number can have factor between 1 and K … constraint is prime number can have only these two factors ..while composite number will have more factors in add on..

Prime numbers won’t work, coz the factor has to be lesser than the number only composites will work. So its basically asking, if the no. is prime or not.

i didn’t understand ….why only prime number .. any number can have factor between 1 and K … constraint is prime number can have only these two factors ..while composite number will have more factors in add on..

Prime numbers won’t work, coz the factor has to be lesser than the number only composites will work. So its basically asking, if the no. is prime or not.