0
Prime Numbers
What is the smallest program to check if the number is prime?
2 Réponses
+ 1
why not try it out on a code and see for yourself, that will even help you better, than for someone to tell you the answer and explain it, the person who answered will improve alot and you little, but if you try it yourself you will learn alot and understand that better
+ 1
In Java you can use this
boolean isPrime = new BigInteger(yourNumber).isProbablePrime(10);