tight prime generator
Versión 1.0.0.0 (1,09 KB) por
Bud Kelly
A small piece of code that generates primes to n, pretty fast too.
Just enter a number for searchlimit in the source code. Then run it. On my old Macbook Pro, it takes only 0.112 seconds to list the primes to 10,000. That's not the fastest possible method, but pretty clean and quick. And easy to read and understand. Handy, and only about ten lines of code including tic and toc.
Citar como
Bud Kelly (2024). tight prime generator (https://www.mathworks.com/matlabcentral/fileexchange/66708-tight-prime-generator), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2018a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Guidance, Navigation, and Control (GNC) en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |