Multiple choice

Which of the following methods in BigInteger class returns the first integer that is prime?

  1. nextProbablePrimeNumber()

  2. nextProbablePrime()

  3. nextPrime()

  4. nextPrimeNumber()

  5. nextProbablePrimeInteger()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is the correct choice. BigInteger class contains a method named nextProbablePrime().