tight prime generator

版本 1.0.0.0 (1.1 KB) 作者: Bud Kelly
A small piece of code that generates primes to n, pretty fast too.
20.0 次下载
更新时间 2018/4/1

查看许可证

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.

引用格式

Bud Kelly (2024). tight prime generator (https://www.mathworks.com/matlabcentral/fileexchange/66708-tight-prime-generator), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Guidance, Navigation, and Control (GNC) 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0