func main() var n: int :: cui@input().toInt(&) var ans: int :: 0 for i(1, n) do ans :+ math@prime(i) ?(i, 0) end for do cui@print("\{ans}\n") end func