結果

問題 No.36 素数が嫌い!
ユーザー はむ吉🐹
提出日時 2016-03-06 20:58:26
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 607 ms / 5,000 ms
コード長 168 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 6,692 KB
実行使用メモリ 50,176 KB
最終ジャッジ日時 2024-06-27 00:42:24
合計ジャッジ時間 6,283 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env gosh
(use math.prime)
(define (judge n)
    (not (length<=? (naive-factorize n) 2))
)
(let* ((n (read)))
    (if (judge n) (print "YES") (print "NO"))
)
0