comparison examples/erat-sieve.txt @ 57:2088fd998865

sbc09 directry clean up
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 23 Jul 2018 16:07:12 +0900
parents
children
comparison
equal deleted inserted replaced
56:4fa2bdb0c457 57:2088fd998865
1
2 Eratostenes Sieve
3 =================
4 J.E. Klasek j AT klasek at
5
6
7
8 # compile
9
10 make
11
12 # start (with memory dump)
13
14 v09 -d erat-sieve
15
16 # hex editor on memory dump ...
17
18 he dump.v09
19
20 # variable area ...
21 # prime count: vv vv
22 00004FEC F3 07 F7 EF 08 DD E8 FF 95 4F A7 08 45 FC 5A D7 9F DE 07 6B .........O..E.Z....k
23 00005000 FF FF FF 00 FF FF 00 FF FF 00 FF 00 00 FF FF 00 00 FF 00 FF ....................
24
25
26 # convert hex value to decimal with dc command ...
27 dc
28 16 i
29 076B p
30 1899
31
32 # 1899 is the correct value for the prime count!
33