view examples/erat-sieve.txt @ 115:54b4e3afcd0e

Added tag current for changeset bc9f2f443421
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 01 Jan 2019 08:57:35 +0900
parents 2088fd998865
children
line wrap: on
line source


Eratostenes Sieve
=================
J.E. Klasek j AT klasek at



# compile

make

# start (with memory dump)

v09 -d erat-sieve

# hex editor on memory dump ...

he dump.v09

# variable area ...
#                                                      prime count:  vv vv
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
00005000   FF FF FF 00  FF FF 00 FF  FF 00 FF 00  00 FF FF 00  00 FF 00 FF  ....................


# convert hex value to decimal with dc command ...
dc
16 i
076B p
1899

# 1899 is the correct value for the prime count!