結果

問題 No.36 素数が嫌い!
コンテスト
ユーザー human_cipher
提出日時 2021-06-22 01:38:48
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 97 ms / 5,000 ms
+ 659µs
コード長 302 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 250 ms
コンパイル使用メモリ 96,108 KB
実行使用メモリ 83,456 KB
最終ジャッジ日時 2026-07-27 10:52:10
合計ジャッジ時間 4,069 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from math import sqrt

n = int(input())

div = 2
fact = list()
while div < int(sqrt(n))+1 and n > 1:
    if n % div == 0:
        while n % div == 0:
            fact.append(div)
            n //= div
    div += 1
if n > 1:
    fact.append(n)

if len(fact) >= 3:
    print("YES")
else:
    print("NO")
0