(* Authors: Albert Qiaochu Jiang *) theory imo_1987_p6 imports Complex_Main "HOL-Computational_Algebra.Computational_Algebra" begin theorem imo_1987_p6: fixes p :: nat and f :: "nat \ nat" assumes h0 : "\x. f x = x^2 + x + p" and h1 : "\(k::nat). (k\floor(sqrt (q/3))) \ prime (f k)" shows "\i. (i \ p - 2) \ prime (f i)" sorry end