Find biggest prime number which is near input number.

Find biggest prime number near the given number
35 Downloads
Updated 7 Oct 2016

View License

Find the biggest prime number near the specific number (>= 2).
Example:
>> max_prime_no(1e9)
ans =
999999937

Cite As

Hoai Tran Quoc (2024). Find biggest prime number which is near input number. (https://www.mathworks.com/matlabcentral/fileexchange/59549-find-biggest-prime-number-which-is-near-input-number), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Discrete Math in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0