Research Article

An Efficient Algorithm to Find All Primes in A Given Interval

Volume: 11 Number: 2 December 31, 2019
EN

An Efficient Algorithm to Find All Primes in A Given Interval

Abstract

In this paper, we propose a deterministic algorithm for primality testing and primes search in a given integer interval. The algorithm use a new primality test method, which replace modulo operator with elementary arithmetic operations, hence a better efficiency than divisibility test. The algorithm is working; it generates a prime base by an expansion process and is appropriate for a fast search for small primes (a dozen of digits). We propose a filtering method to overcome memory constraints, and use the algorithm to expand much more the prime base and find medium size primes (dozens of digits).

Keywords

References

  1. Duta, C., Gheorghe, L., Tapus, N., Framework for Evaluation and Comparison of Primality Testing Algorithms, 20th Int. Conf. on Control Systems and Science, 2015.
  2. Kumar, A., Kim, T., Lee, H., An Improved Divisibility Test Algorithm for Primality Testing, Ubiquitous Information Technologies and Applications, pp. 547--554, Y.-H. Han et al. eds., 2013.
  3. Liang, Y.D., Efficient Algorithms for Finding Prime Numbers In Introduction to Java Programming, 10th Edition, Pearson, pp. 860-866, 2015.
  4. Riesel, H., Prime Numbers and Computer Methods for Factorization, Chap. Basic Concepts in Higher Algebra, Springer Science+Business Media, LLC 2012, Modern Birkh\"{a}user.
  5. Schoof, R., Four Primality Testing Algorithms, Algorithmic Number Theory, MSRI Publications, Volume 44, 2008.
  6. Wang, X., Mathematical Foundations of Public Key Cryptography, CRC Press, pp.27-30. 2016.
  7. Yan, S. Y., Computational Number Theory and Modern Cryptography, Chap. Primality Testing, Wiley, 2017.

Details

Primary Language

English

Subjects

Engineering

Journal Section

Research Article

Publication Date

December 31, 2019

Submission Date

April 15, 2019

Acceptance Date

June 6, 2019

Published in Issue

Year 2019 Volume: 11 Number: 2

APA
Mechkene, F. (2019). An Efficient Algorithm to Find All Primes in A Given Interval. Turkish Journal of Mathematics and Computer Science, 11(2), 74-77. https://izlik.org/JA42GM68AP
AMA
1.Mechkene F. An Efficient Algorithm to Find All Primes in A Given Interval. TJMCS. 2019;11(2):74-77. https://izlik.org/JA42GM68AP
Chicago
Mechkene, Farhat. 2019. “An Efficient Algorithm to Find All Primes in A Given Interval”. Turkish Journal of Mathematics and Computer Science 11 (2): 74-77. https://izlik.org/JA42GM68AP.
EndNote
Mechkene F (December 1, 2019) An Efficient Algorithm to Find All Primes in A Given Interval. Turkish Journal of Mathematics and Computer Science 11 2 74–77.
IEEE
[1]F. Mechkene, “An Efficient Algorithm to Find All Primes in A Given Interval”, TJMCS, vol. 11, no. 2, pp. 74–77, Dec. 2019, [Online]. Available: https://izlik.org/JA42GM68AP
ISNAD
Mechkene, Farhat. “An Efficient Algorithm to Find All Primes in A Given Interval”. Turkish Journal of Mathematics and Computer Science 11/2 (December 1, 2019): 74-77. https://izlik.org/JA42GM68AP.
JAMA
1.Mechkene F. An Efficient Algorithm to Find All Primes in A Given Interval. TJMCS. 2019;11:74–77.
MLA
Mechkene, Farhat. “An Efficient Algorithm to Find All Primes in A Given Interval”. Turkish Journal of Mathematics and Computer Science, vol. 11, no. 2, Dec. 2019, pp. 74-77, https://izlik.org/JA42GM68AP.
Vancouver
1.Farhat Mechkene. An Efficient Algorithm to Find All Primes in A Given Interval. TJMCS [Internet]. 2019 Dec. 1;11(2):74-7. Available from: https://izlik.org/JA42GM68AP