結果
| 問題 | 
                            No.36 素数が嫌い!
                             | 
                    
| コンテスト | |
| ユーザー | 
                             rocoder
                         | 
                    
| 提出日時 | 2017-08-11 03:14:06 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 3,159 ms / 5,000 ms | 
| コード長 | 245 bytes | 
| コンパイル時間 | 126 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-06-27 01:13:06 | 
| 合計ジャッジ時間 | 12,208 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 26 | 
ソースコード
# your code goes here
#prime
N=int(input())
C=0
i=2
while C<2 and i*i<=N:
    if N%i==0:
        C+=1
        N//=i
        while C<2 and N%i==0:
            C+=1
            N//=i
    i+=1
if C==2 and N>1:
    print("YES")
else:
    print("NO")
            
            
            
        
            
rocoder