結果

問題 No.192 合成数
ユーザー zyxwzyxw
提出日時 2021-02-11 17:00:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 71,540 KB
最終ジャッジ日時 2023-09-25 06:41:29
合計ジャッジ時間 4,030 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,516 KB
testcase_01 AC 69 ms
71,320 KB
testcase_02 AC 69 ms
71,248 KB
testcase_03 AC 72 ms
71,296 KB
testcase_04 AC 68 ms
71,128 KB
testcase_05 AC 69 ms
71,172 KB
testcase_06 AC 68 ms
71,236 KB
testcase_07 AC 70 ms
71,464 KB
testcase_08 AC 67 ms
71,444 KB
testcase_09 AC 69 ms
71,540 KB
testcase_10 AC 70 ms
71,320 KB
testcase_11 AC 70 ms
71,220 KB
testcase_12 AC 68 ms
71,512 KB
testcase_13 AC 70 ms
71,276 KB
testcase_14 AC 70 ms
71,312 KB
testcase_15 AC 69 ms
71,284 KB
testcase_16 AC 68 ms
71,252 KB
testcase_17 AC 69 ms
71,132 KB
testcase_18 AC 68 ms
71,516 KB
testcase_19 AC 68 ms
71,252 KB
testcase_20 AC 67 ms
71,312 KB
testcase_21 AC 69 ms
71,324 KB
testcase_22 AC 66 ms
71,508 KB
testcase_23 AC 69 ms
71,272 KB
testcase_24 AC 69 ms
71,268 KB
testcase_25 AC 68 ms
71,324 KB
testcase_26 AC 68 ms
71,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
for i in range(N-100,N+101):
    if i<=2:
        pass
    else:
        memo=0
        for j in range(2,i):
            if i%j==0:
                memo+=1
                break
        if memo==1:
            print(i)
            break
0