期刊文献+

快速Monte Carlo概率素数测试算法

Fast Monte Carlo probabilistic algorithm for primality test
下载PDF
导出
摘要 为了快速实现素数测试,基于容斥原理给出了一种试除小素数优化策略,然后将该优化策略与Leh-m ann算法以及基于递归技术改进的计算余数算法相结合,提出了一种实现快速素数测试的Monte Carlo概率算法.利用该算法并结合C++6.0具有的特殊整型-int64特性,可以快速测定大奇数(至少78位十进制数)是否为素数. For the efficient testing of prime number, a try-division optimization strategy is provided based on inclusion-exclusion principle. Combined the optimization strategy and Lehmann algorithm with the algorithm of remainder calculation improved by recursion techniques, a Monte Carlo probabilistic algorithm is proposed to implement rapid primality test. Using the new algorithm and the typical integer type int64 characteristic of C + +6.0, the testing of prime number (at least 78 digital) can be implemented quickly.
出处 《哈尔滨工业大学学报》 EI CAS CSCD 北大核心 2009年第9期235-237,共3页 Journal of Harbin Institute of Technology
基金 河北省科技攻关资助项目(07216926 052135152)
关键词 概率算法 素数测试 Lehmann算法 递归技术 probabilistic algorithm primality test Lehmann algorithm recursion techniques
  • 相关文献

参考文献9

  • 1DIFFIE W, HELLMAN ME. New directions in cryptography [ J ]. IEEE Transactions on Information Theory, 1976, IT-22 (6): 644-654.
  • 2SCHNEIER B. Applied cryptography: protocols, algorithms, and source code in C [ M]. New York: John Wiley& Sons Inc, 1996: 410- 590.
  • 3MAO Wenbo. Modern Cryptography: Theory and Practice [ M ].New Jersey : Prentice-Hall, 2004:57 - 326.
  • 4STINSON D R. Cryptography: Theory and Practice [ M ]. Waterloo : CRC Press LLC, 2002 : 131 - 228.
  • 5冯登国 裴定一.密码学导引[M].北京:科学出版社,2001.230-231.
  • 6卢开澄.组合数学[M].北京:清华大学出版社,1999:286-307.
  • 7ALSUWAIYEL M H. Algorithms design techniques and analysis[ M]. New Jersey: World Scientific, 2003 : 141 - 226.
  • 8DRAKE C. Object-Oriented Programming with C + + and Smalhalk [ M ]. New Jersey : Prentice-Hall, 1998.
  • 9MONTGOMERY P. Modular multiplication without trail division [ J ]. Mathematics of Computation, 1985,44: 519 -521.

共引文献27

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部