is-even icon indicating copy to clipboard operation
is-even copied to clipboard

Can you please do the same for prime numbers?

Open YounesM opened this issue 3 years ago • 2 comments

Hello,

Many new developers struggle to write a function that finds out if a number is prime or not. Can you help them by doing the same?

Thx

YounesM avatar Aug 17 '21 18:08 YounesM

One has done this https://github.com/samuelmarina/is-even/issues/135#issuecomment-902667282

JiaJiaJiang avatar Aug 20 '21 14:08 JiaJiaJiang

I tried isEven for all prime numbers I know, and guess what, it returned false each time!! So you probably want to do something like (isEven(num) == false == true).

hu9o avatar Oct 27 '21 20:10 hu9o