计算机科学 > 数学软件
[提交于 2021年8月11日]
标题:Improving MATLAB's isprime performance without arbitrary-precision arithmetic
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:MATLAB is a numerical computing platform used by scientists, engineers, mathematicians, and students which contains many mathematical functions, including isprime. MATLAB's isprime function determines which elements of an input array are prime. This research details modular arithmetic techniques, the Miller-Rabin primality test, vectorized operations, and division-minimizing strategies which harness the power of MATLAB's capabilities to improve isprime's performance. The results are typically 5 to 10 times faster for small integers and many hundreds of times faster for large integers and long arrays.
提交历史
来自:Travis Near[v1] 2021年8月11日 星期三 00:00:00 UTC