結果

問題 No.1058 素敵な数
ユーザー ohara_nohara_n
提出日時 2020-05-22 21:49:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 361 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 244,172 KB
最終ジャッジ日時 2024-04-15 16:34:32
合計ジャッジ時間 6,910 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
p = 10**5*2
primes = set(range(2,p+1))
for i in range(2,int(p**0.5+1)):
    primes.difference_update(range(i*2,p+1,i))
primes = list(primes)
cand = [item for item in primes if item > 10**5]
List = []
for i in range(len(cand)):
    for j in range(len(cand)):
        List.append(cand[i]*cand[j])
if N == 1:
    print(1)
else:
    print(List[N])
0