The code is:
#########
input: n
--
for k:=3 to n do {
for j:=2 to k-1 do {
if ( k mod j == 0 ) then {
j:= k-1 //so we exit from the inner for
}
}
}
#########
The result format is:
#########
A result is composed by the following list
- the device used plus the language used, eventual overclock, eventual custom firmware and so on.
- time elapsed for a given n in seconds (see below)
- the code used.
if the calculator is too slow, or limited, to compute a given n, then report "for n the computation takes too much time" (or skip the computation). Conversely, if the calculator is too fast to compute a given n, then report "for n the computation takes too little time, i skipped it"
#########
The options are
#########
n:= 100
n:= 1000
For very fast implementations:
n:= 10000
n:= 100000
#########
The benchmark page is on a wiki editable by registered users
<
http://www.wiki4hp.com/doku.php?id=benchmarks:ultranaiveprimes >
There is also a discussion on the hpmuseum, but it is not archived (search for: New "simpler" benchmark: Ultra naive search for primes, ).
The discussion on the casio forum
<
http://community.casiocalc.org/topic/7183-help-needed-calculator-benchmark/ >
But the TI community is not so collaborative :(
I hope that someone with old/new HP calculator will report his results!
And thanks!