[VA] Short & Sweet Math Challenge #24: "2019 Spring Special 5-tier"
|
04-26-2019, 06:13 PM
(This post was last modified: 04-27-2019 12:25 AM by Albert Chan.)
Post: #44
|
|||
|
|||
RE: [VA] Short & Sweet Math Challenge #24: "2019 Spring Special 5-tier"
I did downloaded the Emu71/Windows, but unable to get the code fully worked out.
HP-71B BASIC code below only print out possible sb candidates. The program cannot be completed without ISPRIME(), so I never posted it. What it does is output values of permutations of base-B digits that have the inputed sb value. Quote:10 INPUT "BASE ?"; B Example: for base-7, upto 12 decimal digits => 15 base-7 digits >RUN >BASE ? 7 >DIGITS ? 15 >SB VALUE ? 65 1694851493 → 1936973135 → 1971561941 (first prime) >RUN >BASE ? 7 >DIGITS ? 15 >SB VALUE ? 77 83047723205 → 94911683663 → 96606535157 → 96848656799 (first prime) BTW, where to get ISPRIME() (or equivalent) for the HP-71B emulator ? Edit: change PRINT "X?" @ INPUT X to INPUT "X?";X |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)