/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ import FormalConjecturesUtil

Green's Open Problem 64

Reference: Ben Green's Open Problems

Do there exist infinitely many primes $p$ for which $p - 2$ has an odd number of prime factors, counted with multiplicity?

open ArithmeticFunctionopen scoped ArithmeticFunction.Omeganamespace Green64

Do there exist infinitely many primes $p$ for which $p - 2$ has an odd number of prime factors, counted with multiplicity (i.e. $\Omega(p - 2)$ is odd)?

@[category research open, AMS 11] theorem green_64 : answer(sorry) {p : | p.Prime Odd (Ω (p - 2))}.Infinite := True {p | Nat.Prime p Odd (Ω (p - 2))}.Infinite All goals completed! 🐙

$5$ satisfies the condition: $5$ is prime and $5 - 2 = 3$ is prime, so $\Omega(3) = 1$ is odd.

Odd 1 All goals completed! 🐙

$7$ satisfies the condition: $7$ is prime and $7 - 2 = 5$ is prime, so $\Omega(5) = 1$ is odd.

Odd 1 All goals completed! 🐙

$11$ does not satisfy the condition: although $11$ is prime, $11 - 2 = 9 = 3 ^ 2$ has $\Omega(9) = 2$ prime factors, which is even. This shows the condition is non-trivial.

hodd:Odd 2False exact (hodd:Odd 2¬Odd 2 All goals completed! 🐙 : ¬ Odd 2) hodd

The same question as green_64 but with $p - 1$ instead of $p - 2$. Green notes this is "probably more natural".

@[category research open, AMS 11] theorem green_64.variants.p_sub_one : answer(sorry) {p : | p.Prime Odd (Ω (p - 1))}.Infinite := True {p | Nat.Prime p Odd (Ω (p - 1))}.Infinite All goals completed! 🐙end Green64