結果
問題 | No.36 素数が嫌い! |
ユーザー |
|
提出日時 | 2022-03-23 00:33:17 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 106 ms / 5,000 ms |
コード長 | 237 bytes |
コンパイル時間 | 583 ms |
コンパイル使用メモリ | 82,468 KB |
実行使用メモリ | 58,888 KB |
最終ジャッジ日時 | 2024-10-10 19:28:50 |
合計ジャッジ時間 | 3,002 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
n = int(input()) cnt = 0 while n % 2 == 0: cnt += 1 n //= 2 f = 3 while f * f <= n: while n % f == 0: cnt += 1 n //= f f += 2 if n != 1: cnt += 1 if cnt >= 3: print("YES") else: print("NO")