#483. 素数密度

素数密度

Background

Special for beginners, ^_^

Description

给定区间[L,R][L,R]1LR<2311\leq L\leq R < 2^{31}RL106R-L\leq 10^6),请计算区间中素数的个数。

Format

Input

每行,两个正整数L和R。不超过1万组。

Output

每行,一个整数,表示区间中素数的个数。

Samples

2 11
2 12
5
5

Limitation

1s, 1024KiB for each test case.