結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
![]() |
提出日時 | 2016-04-17 23:31:54 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 2,853 ms / 5,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-27 00:46:33 |
合計ジャッジ時間 | 36,468 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
#!/usr/bin/env python3 #fileencoding: utf-8 from math import sqrt M = N = int(input()) count = 0 i = 2 while M >= i*i: while N % i == 0: N //= i count += 1 i += 1 if N > 1: count += 1 print("YES" if count >= 3 else "NO")