2218: 前k个素数的和

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:61 Solved:26

Description

给定数字n(1<n<100),求大于n的前k(1<=k<=20)个素数的和。

Input

n和k

Output

前k个素数的和

Sample Input Copy

9 2

Sample Output Copy

24

Source/Category