/- 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. -/ module public import FormalConjecturesUtil /-! # Number of primes $< n^3$ Number of primes strictly less than $n^3$. *References:* - [A038098](https://oeis.org/A038098)-/ @[expose] public section namespace OeisA38098 /-- Number of primes strictly less than $n^3$. -/ def a (n : ℕ) : ℕ := (Nat.primesBelow (n ^ 3)).card /-- Value of the sequence `a` at 1. -/ @[category test, AMS 11] theorem a_1 : a 1 = 0 := by decide /-- Value of the sequence `a` at 2. -/ @[category test, AMS 11] theorem a_2 : a 2 = 4 := by decide /-- Value of the sequence `a` at 3. -/ @[category test, AMS 11] theorem a_3 : a 3 = 9 := by decide /-- Value of the sequence `a` at 4. -/ @[category test, AMS 11] theorem a_4 : a 4 = 18 := by decide /-- Value of the sequence `a` at 5. -/ @[category test, AMS 11] theorem a_5 : a 5 = 30 := by decide +kernel /-- Conjecture (i): for any integer $k > 2$, the sequence $\pi(n^k)/n^k$ ($n = 2, 3, \ldots$) is strictly decreasing, where $\pi(x)$ denotes the number of primes not exceeding $x$. - Zhi-Wei Sun, Oct 17 2015 -/ @[category research open, AMS 11] theorem conjecture1 (k : ℕ) (hk : 2 < k) (n : ℕ) (hn : 2 ≤ n) : (Nat.primeCounting ((n + 1) ^ k) : ℚ) / ((n + 1) ^ k : ℚ) < (Nat.primeCounting (n ^ k) : ℚ) / (n ^ k : ℚ) := by sorry /-- Conjecture (ii): all the numbers $\pi(n^2)/n^2$ ($n = 1, 2, 3, \ldots$) are pairwise distinct. Moreover, we have $\pi(n^2)/n^2 > \pi((n+1)^2)/(n+1)^2$ for all $n > 15646$. - Zhi-Wei Sun, Oct 17 2015 -/ @[category research open, AMS 11] theorem conjecture2 : (∀ m n : ℕ, 1 ≤ m → 1 ≤ n → (Nat.primeCounting (m ^ 2) : ℚ) / (m ^ 2 : ℚ) = (Nat.primeCounting (n ^ 2) : ℚ) / (n ^ 2 : ℚ) → m = n) ∧ (∀ n : ℕ, 15646 < n → (Nat.primeCounting ((n + 1) ^ 2) : ℚ) / ((n + 1) ^ 2 : ℚ) < (Nat.primeCounting (n ^ 2) : ℚ) / (n ^ 2 : ℚ)) := by sorry end OeisA38098