Problem ID:
qhdcs1
Points:
2 (partial)
Time limit:
1.0s
Memory limit:
512M
Input:
chiahet.inp
Output:
chiahet.out
Author:
Problem source:
Problem type
Allowed languages
C, C++, Java, Pascal, Perl, Python
Có bao nhiêu số từ ~A~ đến ~B~ (~ 0~<~A \le B \le 10^8~) mà tổng các chữ số của nó là số nguyên tố.
Input (tệp chiahet.INP)
- Hai số ~A~, ~B~
Output (tệp chiahet.OUT)
Số lượng số tìm được
Ví dụ
Input
7 20
Output
6
Comments