Package ghidra.util.datastruct
Class Prime
java.lang.Object
ghidra.util.datastruct.Prime
Class that provides a static nextPrime method that gives out prime numbers
that are useful in a buffer doubling strategy with all buffer sizes being prime.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final int
nextPrime
(int n) Finds the next prime number greater than or equal to n.
-
Constructor Details
-
Prime
public Prime()
-
-
Method Details
-
nextPrime
public static final int nextPrime(int n) Finds the next prime number greater than or equal to n.- Parameters:
n
- the number from which to find the next higher prime number.
-