nextprime
For any given number (also vpi numbers), find the next prime number in the sequence of primes.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
John D'Errico (2026). nextprime (https://au.mathworks.com/matlabcentral/fileexchange/23846-nextprime), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.3.0 (3.27 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.3.0 | Modification to allow inputs up to 2^46 as numeric. Also did some minor cleanup, better error messages. |