結果

問題 No.36 素数が嫌い!
コンテスト
ユーザー pluto77
提出日時 2016-03-28 09:12:14
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
AC  
実行時間 91 ms / 5,000 ms
コード長 197 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 361 ms
コンパイル使用メモリ 81,024 KB
実行使用メモリ 82,176 KB
最終ジャッジ日時 2026-03-14 01:00:21
合計ジャッジ時間 3,720 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#coding: utf-8
##yuki_36
import math

n=int(raw_input())

temp=0
for i in xrange(2,int(math.sqrt(n))+1):
 while n%i==0:
  temp+=1
  n/=i
if n>1:
 temp+=1
if temp>=3:
 print "YES"
else:
 print "NO"
0