PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SP0000181. Số bán nguyên tố đặc biệt (Special Prime Number)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Số bán nguyên tố đặc biệt (Special Prime Number)

Special Prime Number

Phuoc Hung OJ problem: PRIME000186
Reference: SPOJ SPNUMBER
Adaptation: one original query per PHOJ execution; subtasks are PHOJ-specific groups.

Problem statement

A Special Prime Number is the product p⋅qp\cdot q of two distinct primes p≠qp\ne q. Count such numbers in the inclusive interval [A,B][A,B].

Input

One line with integers A,BA,B (one SPOJ case per PHOJ run).

Output

Print exactly Case #1: X, where X is the requested count.

Subtasks

  • Subtask 1 (20 points): 1≤A≤B≤10001\le A\le B\le1000.
  • Subtask 2 (30 points): 1≤A≤B≤1051\le A\le B\le10^5, B>1000B>1000.
  • Subtask 3 (50 points): 1≤A≤B≤1061\le A\le B\le10^6, B>105B>10^5.

Example

Input

1 10

Output

Case #1: 2

Explanation: Only 6=2⋅36=2\cdot3 and 10=2⋅510=2\cdot5 qualify. The number 4=224=2^2 does not, because the primes must be distinct.