logo AlgoBeat OnlineJudge
登录 注册

#206131. [NEERC 2016] List of Primes

内存限制:512 MiB 时间限制:2000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

Lidia likes sets of prime numbers. When she is bored, she starts writing them down into the Extremely Long Notebook for Prime Sets.

Elements of each set are written down in ascending order. Each set of prime numbers appears in her notebook eventually. A set with a smaller sum always appears before a set with a larger sum. Sets with the same sum are sorted in ascending lexicographical order: they are compared by the first element, if the first elements are equal, then by second element, and so on.

Just in case someone decides to parse her notebook, she writes down her sets in a machine-readable JSON format. Of course, she puts a space after each comma. Here's the beginning of her notebook:

Lidia wants to double-check her work, so here is her request for you: given two integers, and , output a substring of her notebook from the position to the position (inclusive, counting from ) .

输入格式

The first line contains two integers, and ().

输出格式

Output the substring of the notebook described in the problem statement from the position to the position . You must write a line with exactly characters, including any leading or trailing spaces.

样例

样例输入 1

1 35

样例输出 1

[2], [3], [2, 3], [5], [2, 5], [7],

样例输入 2

36 41

样例输出 2

 [3, 5

数据范围与提示

Time limit: 2 s, Memory limit: 512 MB.