Method to find prime numbers

The goal is to present an algorithm that provides the prime numbers in an extremely simple way
562 Downloads
Updated 20 Oct 2011

View License

This is a very simple method to find prime numbers. I use a mathematical function to find non prime numbers. Thus I have compared its efficiency with a code found on Matlab Central, Written by John D'Errico.

Cite As

Gabriel Kasser (2024). Method to find prime numbers (https://www.mathworks.com/matlabcentral/fileexchange/33386-method-to-find-prime-numbers), MATLAB Central File Exchange. Retrieved .

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

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