Optimized Euler-Based Fermat Factorization Method Using Parallel Computing

Authors

  • Hazem M. Bahig Department of Information and Computer Science, College of Computer Science and Engineering, University of Ha'il, Ha'il, 81481, Saudi Arabia https://orcid.org/0000-0001-9448-6168
  • Ibrahim M. Alseadoon Department of Information and Computer Science, College of Computer Science and Engineering, University of Ha'il, Ha'il, 81481, Saudi Arabia
  • Mohamed A.G. Hazber Department of Information and Computer Science, College of Computer Science and Engineering, University of Ha'il, Ha'il, 81481, Saudi Arabia
  • Hatem M. Bahig College of Computer and Information Sciences, Imam Mohammad Ibn Saud Islamic University (IMSIU), Riyadh, 13318, Saudi Arabia
  • Dieaa I. Nassr Department of Mathematics, Faculty of Science, Ain Shams University, Cairo, 11566, Egypt

DOI:

https://doi.org/10.37256/cm.6620257692

Keywords:

integer factorization, Fermat method, Euler theorem, number theory, parallel computing, cryptography

Abstract

The Euler-based Fermat Factorization (EFF) method is a technique used to factor a positive odd integer n into two prime factors p and q. The method is based on representing n as the difference between two squares and replacing the perfect square operation with modular multiplication. The computational time for the EFF method increases significantly with large values of n and d = |pq| > mceclip1-2d843c2af31ad9ab0149bb7e54840684.png. This paper presents a new mathematical formula for computing the EFF method in a parallel shared-memory model. Then, it proposes a new parallel algorithm to speed up the computation of factorization when n is large and d exceeds  mceclip1-2d843c2af31ad9ab0149bb7e54840684.png. Experiments were conducted on a multicore system to evaluate the performance of the proposed method across various parameters, including the size of n, the difference d, and the number of threads in the parallel system. The results show that the proposed parallel EFF algorithm achieves performance enhancements of 77.3% compared to the original EFF algorithm and 47.7% relative to the best-known parallel algorithm. Furthermore, the parallel EFF algorithm demonstrates superior scalability compared to the best-known parallel algorithm.

Downloads

Published

2025-10-29