Home » Personal collection » Acorn ADFS disks » Electron » Finished_programs.ADF » TAPE3/A/PRIMES
TAPE3/A/PRIMES
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Personal collection » Acorn ADFS disks » Electron » Finished_programs.ADF |
Filename: | TAPE3/A/PRIMES |
Read OK: | ✔ |
File size: | 00BB bytes |
Load address: | FFFF0E00 |
Exec address: | FFFF8023 |
Duplicates
There are 3 duplicate copies of this file in the archive:
- Personal collection » Acorn ADFS disks » Electron » MTF_finished_programs.ADF » TAPE3/A/PRIMES
- Personal collection » Acorn ADFS disks » Electron » Finished_programs.ADF » TAPE3/A/PRIMES
- Personal collection » Acorn hard disk » zipped_disks » elk03 » finished/TAPE3/A/PRIMES
- Personal collection » Acorn tapes » Own_Work » box02_tape03a_c15_acorn_maths.wav » PRIMES
File contents
10 DIM A%(5002) 20 A%(0)=2 30 B%=1 40 C%=3 50 D%=-1 60 D%=D%+1 70 IF C% MOD A%(D%)=0 THEN GOTO 100 80 IF A%(D%)<SQR(C%) THEN GOTO 60 90 B%=B%+1:PRINT C%,B%:IF B%<5002 A%(B%-1)=C% 100 C%=C%+2:GOTO 50
� A%(5002) A%(0)=2 B%=1 ( C%=3 2 D%=-1 < D%=D%+1 F � C% � A%(D%)=0 � � �Dd@ P � A%(D%)<�(C%) � � �T|@ Z* B%=B%+1:� C%,B%:� B%<5002 A%(B%-1)=C% d C%=C%+2:� �Tr@ �
00000000 0d 00 0a 0f 20 de 20 41 25 28 35 30 30 32 29 0d |.... . A%(5002).| 00000010 00 14 0c 20 41 25 28 30 29 3d 32 0d 00 1e 09 20 |... A%(0)=2.... | 00000020 42 25 3d 31 0d 00 28 09 20 43 25 3d 33 0d 00 32 |B%=1..(. C%=3..2| 00000030 0a 20 44 25 3d 2d 31 0d 00 3c 0c 20 44 25 3d 44 |. D%=-1..<. D%=D| 00000040 25 2b 31 0d 00 46 1d 20 e7 20 43 25 20 83 20 41 |%+1..F. . C% . A| 00000050 25 28 44 25 29 3d 30 20 8c 20 e5 20 8d 44 64 40 |%(D%)=0 . . .Dd@| 00000060 0d 00 50 1c 20 e7 20 41 25 28 44 25 29 3c b6 28 |..P. . A%(D%)<.(| 00000070 43 25 29 20 8c 20 e5 20 8d 54 7c 40 0d 00 5a 2a |C%) . . .T|@..Z*| 00000080 20 42 25 3d 42 25 2b 31 3a f1 20 43 25 2c 42 25 | B%=B%+1:. C%,B%| 00000090 3a e7 20 42 25 3c 35 30 30 32 20 41 25 28 42 25 |:. B%<5002 A%(B%| 000000a0 2d 31 29 3d 43 25 0d 00 64 13 20 43 25 3d 43 25 |-1)=C%..d. C%=C%| 000000b0 2b 32 3a e5 20 8d 54 72 40 0d ff |+2:. .Tr@..| 000000bb