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.
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.