package main import . "fmt" var b [1000000]bool func main() { var n int64 Scan(&n) c:=1 x:=int64(2) for p:=int64(3);p<=(n+x-1)/x;p+=2 { if b[int(p)] { continue } c++ x*=p for e:=p+p;int(e)