Ed S on Nostr: #bbcmicrobot 🚀 REM Compute e using Wozniak's method REM Outer loop is to test ...
#bbcmicrobot 🚀
REM Compute e using Wozniak's method
REM Outer loop is to test several possibilities
REM but only the final one is needed
FOR N=2 TO 13
E=0
FOR D=N TO 2 STEP -1
E=E+1
E=E/D
NEXT
PRINT E+2;" ";E+2-EXP1
NEXT
PRINT "Compute e using Wozniak's method"
Published at
2024-08-13 20:29:21Event JSON
{
"id": "75a636401bddfa525ae9eff3d56dcc7017a7ce295bfc9d72b0b077fa70d52e26",
"pubkey": "9c6db20bcebcdd7dde4f5ba5f4adcf627db47d7af2d2b6ee951c5fbbbbb1a210",
"created_at": 1723580961,
"kind": 1,
"tags": [
[
"t",
"bbcmicrobot"
],
[
"content-warning",
"Wozniak's 1978 e algorithm in Basic"
],
[
"proxy",
"https://mastodon.sdf.org/users/EdS/statuses/112956601881707241",
"activitypub"
]
],
"content": "#bbcmicrobot 🚀 \nREM Compute e using Wozniak's method\nREM Outer loop is to test several possibilities\nREM but only the final one is needed\nFOR N=2 TO 13\nE=0\nFOR D=N TO 2 STEP -1\nE=E+1\nE=E/D\nNEXT\nPRINT E+2;\" \";E+2-EXP1\nNEXT\nPRINT \"Compute e using Wozniak's method\"",
"sig": "e25b034a700789402970308d10d91bb5a555131b3b913dfeb7e04cf1509d4f88a4c611cb59ccd31de122d704bb94683f8c797ae5e412613d9f310cf5b6b09c4e"
}