Two Algorithms to Find Primes in Patterns
Abstract
Let be an integer, and let be admissible linear polynomials over the integers, or \textit{the pattern}. We present two algorithms that find all integers where and all the are prime. Our first algorithm takes at most arithmetic operations using space. Our second algorithm takes slightly more time, arithmetic operations, but uses only space for a constant . 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 .
Cite
@article{arxiv.1807.08777,
title = {Two Algorithms to Find Primes in Patterns},
author = {Jonathan P. Sorenson and Jonathan Webster},
journal= {arXiv preprint arXiv:1807.08777},
year = {2021}
}