DEV Community

Discussion on: Prime Numbers

Collapse
 
mustabelmo profile image
Mustapha Belmokhtar

awesome but as far as I know, it would be great if your methods returns a boolean value. any positive number can be either prime or not prime

Collapse
 
221910304057vivek profile image
221910304057VIVEK

Yes ,I thought of that but the user may input any number so this function checks for all input integers.