is-even
is-even copied to clipboard
Can you please do the same for prime numbers?
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
One has done this https://github.com/samuelmarina/is-even/issues/135#issuecomment-902667282
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)
.