说明:四方格
确定性多项式时间算法,用于找到素数表示为四个平方之和的表示形式
安装
克隆此存储库。
$ git clone https://github.com/c910335/four-squares
$ cd four-squares
编译它。
$ shards build --release --no-debug
用法
运行并输入一些素数。
$ bin/four_squares
1
1 is not a prime.
2
1^2 + 1^2 + 0^2 + 0^2 = 2
65539
23
<weixin_42119866> 上传 | 大小:7kb