結果
問題 | No.713 素数の和 |
ユーザー |
![]() |
提出日時 | 2023-07-11 12:40:15 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 169 bytes |
コンパイル時間 | 389 ms |
コンパイル使用メモリ | 82,200 KB |
実行使用メモリ | 58,996 KB |
最終ジャッジ日時 | 2024-09-13 03:14:50 |
合計ジャッジ時間 | 1,407 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
n= int(input()) ans = [0] * (n+1) for i in range(2,n+1): t = i+i while t <= n: ans[t] = 1 t += i a = 0 for i in range(2,n+1): if ans[i] == 0: a+=i print(a)