annotate example/Miller_Rabin/README @ 1716:c12df61ded45 draft

fix gpu profile. not work yet
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Tue, 15 Oct 2013 17:21:10 +0900
parents 9d37fa6bc1da
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1242
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
1 - 概要
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
2
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
3 指定された範囲の素数を計算するプログラムです。
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
4
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
5 - 実行方法
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
6
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
7 % ./prime [-num number] [-print]
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
8
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
9 -num 出力する素数の範囲
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
10 -print 計算した素数を出力
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
11
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
12 - 実行例 (-cpu は Cerium 標準のオプションです)
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
13
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
14 % ./prime -num 100 -print -cpu 6
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
15 0 1 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
16