Skip to main content

洛谷 P1865 A % B Problem

给定 nnl,rl,r 和最大值 mm,求区间 [l,r][l,r] 内质数的个数。(n1000,m106n\le1000,m\le10^6