...
首页> 外文期刊>American Journal of Computational Mathematics >A Sieve for Prime Based on Extension Form of Not Prime
【24h】

A Sieve for Prime Based on Extension Form of Not Prime

机译:基于非素数扩展形式的素数筛

获取原文
           

摘要

This paper will illustrate two versions of an algorithm for finding prime number up to N, which give the first version complexity (1) where c1, c2 are constants, and N is the input dimension, and gives a better result for the second version. The method is based on an equation that expresses the behavior of not prime numbers. With this equation it is possible to construct a fast iteration to verify if the not prime number is generated by a prime and with which parameters. The second method differs because it does not pass other times over a number that has been previously evaluated as not prime. This is possible for a recurrence of not prime number that is (mod 3) = 0. The complexity in this case is better than the first. The comparison is made most with Mathematics than by computer calculation as the number N should be very big to appreciate the difference between the two versions. Anyway the second version results better. The algorithms have been developed in an object oriented language.
机译:本文将说明用于查找最高达N的素数的算法的两个版本,它们给出了第一个版本的复杂性(1),其中c1,c2是常数,而N是输入维,并且为第二个版本提供了更好的结果。该方法基于一个表示非素数行为的方程式。利用该方程式,可以构造一个快速迭代来验证非质数是否由质数以及使用哪些参数生成。第二种方法之所以不同,是因为它没有超过其他时间,而之前已被评估为非质数。对于非素数(mod 3)= 0的重复出现,这是可能的。在这种情况下,复杂度比第一种更好。使用数学进行比较最多,而不是通过计算机计算进行比较,因为数值N应该很大,才能欣赏两个版本之间的差异。无论如何,第二版效果更好。该算法已用面向对象的语言开发。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号