c666. 質數乘積
Tags : math prime
Accepted rate : 77人/134人 ( 57% ) [非即時]
評分方式:
Tolerant

最近更新 : 2024-05-06 14:43

Content

給您一個數 n

請您計算前 n 個質數的乘積。

例 n = 2

r = 2 * 3 = 6

輸出 r

Input

n < 5001

Output
Sample Input #1
2
4
Sample Output #1
6
210
測資資訊:
記憶體限制: 512 MB
公開 測資點#0 (12%): 1.0s , <1K
公開 測資點#1 (12%): 1.0s , <1K
公開 測資點#2 (12%): 1.0s , <1K
公開 測資點#3 (12%): 1.0s , <1M
公開 測資點#4 (13%): 1.0s , <1M
公開 測資點#5 (13%): 1.0s , <1M
公開 測資點#6 (13%): 2.0s , <1M
公開 測資點#7 (13%): 3.5s , <1M
Hint :

質數  建表

Tags:
math prime
出處:
it's david [管理者: asnewchien@g ... (david) ]

Status Forum 排行

ID User Problem Subject Hit Post Date
44810 hansjiang101 ... (可以出題了!!!!!!!!!!...) c666
125 2024-12-18 21:54
14522 asnewchien@g ... (david) c666
解題建議
1711 2018-07-22 09:40