結果

問題 No.36 素数が嫌い!
ユーザー Ryuto
提出日時 2018-03-19 18:53:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 82,272 KB
実行使用メモリ 117,544 KB
最終ジャッジ日時 2025-01-03 00:46:49
合計ジャッジ時間 59,274 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13 WA * 4 TLE * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

N = int(input())

if 1 <= N <= 3:
    print('NO')
    quit()

ans = 0
tmp = N
while tmp % 2 == 0:
    ans += 1
    tmp = tmp / 2

for i in range(3, N, 2):
    if ans >= 2:
        print('YES')
        quit()
    elif N % i == 0:
        ans += 1

if ans >= 2:
    print('YES')
else:
    print('NO')
0