Aniket-Engg / solidity-school

First place for early developers to learn Solidity
368 stars 82 forks source link

The PrimeNumber function returns true when 1 (one) is send #31

Closed DobleV55 closed 2 years ago

DobleV55 commented 2 years ago

The number 1 (one) is not a prime number.

Aniket-Engg commented 2 years ago

@DobleV55 Thanks for raising this!!

Aniket-Engg commented 2 years ago

fixed by https://github.com/Aniket-Engg/solidity-school/commit/6df708fb3c03287ef67f86e7cb60f366a9c964e9