Left to Solve
Problems / MathOverflow (not formalized)

Does $n$ and $(n-1)/2$ being strong probable primes imply $n$ prime?

Open, not yet stated in LeanMathOverflow (not formalized)Number Theorydifficulty55/100

Statement

A strong probable prime is a positive integer either , or such that when expressed as with odd, it holds that , or that for some with . All primes are strong probable primes, and most strong probable primes are prime; exceptions are the strong pseudoprimes (OEIS A001262).

If both and are strong probable primes, does it follow that is prime?

If is a strong probable prime other than , then is odd, and being a strong probable prime reduces to .

If is prime and , then is prime (proof by Fedor Petrov).

Therefore, any exception to the question's proposition has among strong pseudoprimes (OEIS A001262).

The table of Fermat pseudoprimes below compiled by Jan Feitsma and William Galway allows to quickly establish that the proposition holds for the values of less than such that and are strong probable primes, but is composite (OEIS A301643, currently under review).

It is not surprising that the above is inconclusive: strong …

Posed by fgrieu · nt.number-theory, prime-numbers

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-296166.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-296166.lean

import Mathlib

/-!
# Does $n$ and $(n-1)/2$ being strong probable primes imply $n$ prime?

Source: https://mathoverflow.net/questions/296166
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_296166

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_296166