节点文献

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

Fast Monte Carlo probabilistic algorithm for primality test

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 贺毅朝王彦祺刘坤起

【Author】 HE Yi-chao1,WANG Yan-qi1,LIU Kun-qi1,2(1.Information Project Department,Shijiazhuang University of Economics,Shijiazhuang 050031,China; 2.School of computer,China University of Geosciences,Wuhan 430074,China)

【机构】 石家庄经济学院信息工程系中国地质大学计算机学院

【摘要】 为了快速实现素数测试,基于容斥原理给出了一种试除小素数优化策略,然后将该优化策略与Leh-m ann算法以及基于递归技术改进的计算余数算法相结合,提出了一种实现快速素数测试的Monte Carlo概率算法.利用该算法并结合C++6.0具有的特殊整型-int64特性,可以快速测定大奇数(至少78位十进制数)是否为素数.

【Abstract】 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.

【基金】 河北省科技攻关资助项目(07216926,052135152)
  • 【文献出处】 哈尔滨工业大学学报 ,Journal of Harbin Institute of Technology , 编辑部邮箱 ,2009年09期
  • 【分类号】TN918
  • 【下载频次】149
节点文献中: 

本文链接的文献网络图示:

本文的引文网络