Prime check : Miller-Rabin primality test (with bases)

Contributions to this software library are always welcome. Please ensure that you post program listings rather than .raw files. They give a reasonable idea of what your program does without having to load them into a DM42 and you can also include comments in your code. Check out the following link for a decoder/encoder: https://technical.swissmicros.com/decoders/dm42/

You can then copy/paste the listing and post it in "code" tags.
mcc
Posts: 277
Joined: Fri Jun 23, 2017 5:10 am

Re: Prime check : Miller-Rabin primality test (with bases)

Post by mcc »

Hi Boub65,

Thank you :) !
May be you can add an AVIEW command after printing
the result to the alpha register, too?
In case one disabled audio completly and (at least if
configured like my DM42) "PRIME" and "NOT PRIME"
are not shown by themselves... ;)

Cheers!
mcc
DM 42 - SN: 00373, Firmware release v.:3.22. / DMCP 3.24. as compiled by SwissMicros
Post Reply