結果

問題 No.713 素数の和
ユーザー nebukuro09nebukuro09
提出日時 2018-07-13 22:22:28
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 1,691 ms
コンパイル使用メモリ 76,800 KB
実行使用メモリ 76,288 KB
最終ジャッジ日時 2024-04-17 11:07:42
合計ジャッジ時間 3,318 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
75,904 KB
testcase_01 AC 86 ms
75,264 KB
testcase_02 AC 86 ms
75,392 KB
testcase_03 AC 86 ms
76,288 KB
testcase_04 AC 89 ms
76,160 KB
testcase_05 AC 88 ms
76,032 KB
testcase_06 AC 87 ms
75,264 KB
testcase_07 AC 86 ms
75,264 KB
testcase_08 AC 85 ms
75,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def is_prime(n):
    for i in xrange(2, n):
        if n % i == 0:
            return False
    return True

N = input()
ans = 0
for i in xrange(2, N+1):
    if is_prime(i):
        ans += i
print ans
0