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
1 lộ trìnhBài tập thuộc lộ trình
Mục lục đề ⌄
Đang đọc
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 of two distinct primes . Count such numbers in the inclusive interval .
Input
One line with integers (one SPOJ case per PHOJ run).
Output
Print exactly Case #1: X, where X is the requested count.
Subtasks
- Subtask 1 (20 points): .
- Subtask 2 (30 points): , .
- Subtask 3 (50 points): , .
Example
Input
1 10
Output
Case #1: 2
Explanation: Only and qualify. The number does not, because the primes must be distinct.