Optimization finding prime numbers in C++

Authors

  • D.B. Alibiуev
  • M.A. Seksembayeva

Keywords:

prime numbers, Eratosthenes algorithm, Miller-Rabin test, BPSW algorithm, C++ language, computational optimization, algorithm

Abstract

In this article discusses ways to optimize for finding prime numbers using the Sieve of Eratosthenes algorithm, Miller-Rabin test and using an algorithm BPSW. In the work shows the results of the programs, where searching for prime numbers, such as a maximum for N = 2*1010. Also in the work shows programs in C++ optimized by time or by use memory. The results were reflected in the tables and as a graph for each of the considered algorithm.

Downloads

Published

2015-03-28

Issue

Section

MATHEMATICS