nthprime

Finds either the n'th prime, or compute the number of primes that are less than some given value.

Download
Download

You are now following this Submission

Cite As

John D'Errico (2026). nthprime (https://www.mathworks.com/matlabcentral/fileexchange/27073-nthprime), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: nextprime

Categories

Find more on Get Started with MATLAB in Help Center and MATLAB Answers

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0

Download