Emergent Mind

Two Algorithms to Find Primes in Patterns

(1807.08777)
Published Jul 23, 2018 in math.NT and cs.DS

Abstract

Let $k\ge 1$ be an integer, and let $P= (f1(x), \ldots, fk(x) )$ be $k$ admissible linear polynomials over the integers, or \textit{the pattern}. We present two algorithms that find all integers $x$ where $\max{ {fi(x) } } \le n$ and all the $fi(x)$ are prime. Our first algorithm takes at most $OP(n/(\log\log n)k)$ arithmetic operations using $O(k\sqrt{n})$ space. Our second algorithm takes slightly more time, $OP(n/(\log \log n){k-1})$ arithmetic operations, but uses only $n{1/c}$ space for a constant $c>2$. We prove correctness unconditionally, but the running time relies on two unproven but reasonable conjectures. We are unaware of any previous complexity results for this problem beyond the use of a prime sieve. We also implemented several parallel versions of our second algorithm to show it is viable in practice. In particular, we found some new Cunningham chains of length 15, and we found all quadruplet primes up to $10{17}$.

We're not able to analyze this paper right now due to high demand.

Please check back later (sorry!).

Generate a summary of this paper on our Pro plan:

We ran into a problem analyzing this paper.

Newsletter

Get summaries of trending comp sci papers delivered straight to your inbox:

Unsubscribe anytime.