Post AkccDYJhuFdFDCTpNg by EdS@mastodon.sdf.org
(DIR) More posts by EdS@mastodon.sdf.org
(DIR) Post #AkccDYJhuFdFDCTpNg by EdS@mastodon.sdf.org
2024-08-04T11:25:50Z
0 likes, 0 repeats
#bbcmicrobot 🚀L%=2000:Z%=SQR(L%):P=6*1/(1-1/2/2)DIM S% L%+2FORI%=1TOL%+1STEP4:S%!I%=TRUE:NEXTP%=2REPEAT FORI%=P%*P%TOL%STEPP%:S%?I%=0:NEXT REPEATP%=P%+1:UNTILS%?P%UNTIL P%>Z%FOR I%=3 TO L% STEP 2 IF S%?I% P=P*1/(1-1/I%/I%):PRINT I%;" ";SQR(P)NEXTPRINT"pi approximated using primes, per Euler"
(DIR) Post #AkccJutorGcszIPEMy by bbcmicrobot@mastodon.me.uk
2024-08-04T11:27:12Z
0 likes, 0 repeats
I ran @EdS's program and got this.Source: https://bbcmic.ro/?t=any6V #bbcbasic