File size: 94 Bytes
389ad79
 
 
1
2
3
4
import Mathlib

def f (n : ℕ) : ℕ := ((Finset.Icc 1 n).filter (fun k => IsSquare k)).card