結果

問題 No.36 素数が嫌い!
ユーザー ciel
提出日時 2015-07-21 22:30:53
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 143 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 20,096 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-08 11:38:28
合計ジャッジ時間 1,184 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 17 WA * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |         scanf("%lld",&N);
      |         ^~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main(){
	long long N,i=2;
	scanf("%lld",&N);
	for(;i*i<=N;i++)if(N%i==0)break;
	puts(i*i>N ? "NO" : "YES");
	return 0;
}
0