結果

問題 No.36 素数が嫌い!
ユーザー koba-e964
提出日時 2015-05-13 13:26:02
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 265 bytes
コンパイル時間 1,895 ms
コンパイル使用メモリ 75,160 KB
実行使用メモリ 55,980 KB
最終ジャッジ日時 2024-07-06 01:25:28
合計ジャッジ時間 6,134 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 17 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
BigInteger bi = sc.nextBigInteger();
System.out.println((bi.equals(BigInteger.ONE) || bi.isProbablePrime(20)) ? "NO" : "YES");
}}
0