Abstract
Generating prime numbers less than or equal to an integer number m plays an important role in many asymmetric key cryptosystems. Recently, a new sequential prime sieve algorithm was proposed based on set theory. The main drawback of this algorithm is that the running time and storage are high when the size of m is large. This paper introduces three new algorithms for a prime sieve based on two approaches. The first approach develops a fast sequential prime sieve algorithm based on set theory and some structural improvements to the recent prime sieve algorithm. The second approach introduces two new parallel algorithms in the shared memory parallel model based on static and dynamic strategies. The analysis of the experimental studies shows the following results. (1) The proposed sequential algorithm outperforms the recent prime sieve algorithm in terms of running time by 98% and memory consumption by 80%, on average. (2) The two proposed parallel algorithms outperform the proposed sequential algorithm by 72% and 67%, respectively, on average. (3) The maximum speedups achieved by the dynamic and static parallel algorithms using 16 threads are 7 and 4.5, respectively. As a result, the proposed algorithms are more effective than the recent algorithm in terms of running time, storage and scalability in generating primes.
Funder
Scientific Research Deanship at the University of Ha’il, Saudi Arabia
Subject
Physics and Astronomy (miscellaneous),General Mathematics,Chemistry (miscellaneous),Computer Science (miscellaneous)
Reference33 articles.
1. A new explicit algorithmic method for generating the prime numbers in order;Elnabya;Egypt. Inf. J.,2021
2. Paillard, G., Franca, F.M., and Lavault, C. (2019, January 20–24). A distributed wheel sieve algorithm. Proceedings of the 2019 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW), Rio de Janeiro, Brazil.
3. Aiazzi, B., Baronti, S., Santurri, L., and Selva, M. (2019). An Investigation on the prime and twin prime number functions by periodical binary sequences and symmetrical runs in a modified sieve procedure. Symmetry, 11.
4. Primes is in p;Agrawal;Ann. Math.,2004
5. Ishmukhametov, S.T., Mubarakov, B.G., and Rubtsova, R.G. (2020). On the number of witnesses in the Miller-Rabin primality test. Symmetry, 12.
Cited by
2 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献