Ramanujan's Lost Notebook Part III, Ch. 10: ch10Primes
DefinitionRamanujanLostNotebook_PartIII_ch10_ch10Primesnumber-theoryramanujan-lost-notebook
Primes at most the real cutoff x; the empty set for x<2.
Definition code
import Mathlib noncomputable section namespace RamanujanLostNotebook.PartIII /-- Primes at most the real cutoff x; the empty set for x<2. -/ def ch10Primes (x : ℝ) : Finset ℕ := (Finset.range (Nat.floor x + 1)).filter Nat.Prime end RamanujanLostNotebook.PartIII end
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part III, Springer 2012, Chapter 10.