結果

問題 No.8114 Prime Checker+1
ユーザー ID 21712
提出日時 2025-02-21 16:37:37
言語 Go
(1.23.4)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 14,421 ms
コンパイル使用メモリ 252,840 KB
実行使用メモリ 8,400 KB
最終ジャッジ日時 2025-02-21 16:37:58
合計ジャッジ時間 16,006 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import . "fmt"
import . "math/big"
import . "os"
import bf "bufio"

func main() {
	n:=new(Int)
	Fscan(bf.NewReader(Stdin),n)
	x:=n.Bit(0)
	n.Add(n,NewInt(int64(x)))
	Println(x)
	if n.ProbablyPrime(10) {
		Println("Yes")
	} else {
		Println("No")
	}
}
0