Home » Personal collection » Acorn ADFS disks » Electron » MTF_finished_programs.ADF » PrimePrint
PrimePrint
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 » MTF_finished_programs.ADF |
Filename: | PrimePrint |
Read OK: | ✔ |
File size: | 0155 bytes |
Load address: | FFFF1D00 |
Exec address: | FFFF8023 |
Duplicates
There are 2 duplicate copies of this file in the archive:
- Personal collection » Acorn ADFS disks » Electron » MTF_finished_programs.ADF » PrimePrint
- Personal collection » Acorn ADFS disks » Electron » Finished_programs.ADF » PrimePrint
- Personal collection » Acorn hard disk » zipped_disks » elk03 » finished/PrimePrint
File contents
4 ON ERROR VDU 3:REPORT:PRINT" at line ";ERL:END 5 @%=&907 10 DIM P%(1140) 20 FILE=OPENIN("PRIMELIST") 25 VDU2 30 REPEAT 40 FOR A=1 TO 1140 50 IF EOF#(FILE) THEN P%(A)=0 ELSE INPUT#FILE,P%(A) 60 NEXT 70 FOR line=1 TO 60:COLUMN=0:REPEAT COLUMN=COLUMN+1:PRIME=P%(60*(COLUMN-1)+line):IF PRIME<>0 THEN PRINT PRIME,; 80 UNTIL PRIME=0 OR COLUMN=19 85 PRINT 90 NEXT line 95 A$=GET$ 100 UNTIL P%(1140)=0 110 VDU3 120 CLOSE#0
� � � 3:�:�" at line ";�:� @%=&907 � P%(1140) FILE=�("PRIMELIST") �2 � ( � A=1 � 1140 2( � �#(FILE) � P%(A)=0 � �#FILE,P%(A) < � Fa � line=1 � 60:COLUMN=0:� COLUMN=COLUMN+1:PRIME=P%(60*(COLUMN-1)+line):� PRIME<>0 � � PRIME,; P � PRIME=0 � COLUMN=19 U � Z � line _ A$=� d � P%(1140)=0 n �3 x �#0 �
00000000 0d 00 04 1f 20 ee 20 85 20 ef 20 33 3a f6 3a f1 |.... . . . 3:.:.| 00000010 22 20 61 74 20 6c 69 6e 65 20 22 3b 9e 3a e0 0d |" at line ";.:..| 00000020 00 05 0c 20 40 25 3d 26 39 30 37 0d 00 0a 0f 20 |... @%=&907.... | 00000030 de 20 50 25 28 31 31 34 30 29 0d 00 14 18 20 46 |. P%(1140).... F| 00000040 49 4c 45 3d 8e 28 22 50 52 49 4d 45 4c 49 53 54 |ILE=.("PRIMELIST| 00000050 22 29 0d 00 19 07 20 ef 32 0d 00 1e 06 20 f5 0d |").... .2.... ..| 00000060 00 28 11 20 e3 20 41 3d 31 20 b8 20 31 31 34 30 |.(. . A=1 . 1140| 00000070 0d 00 32 28 20 e7 20 c5 23 28 46 49 4c 45 29 20 |..2( . .#(FILE) | 00000080 8c 20 50 25 28 41 29 3d 30 20 8b 20 e8 23 46 49 |. P%(A)=0 . .#FI| 00000090 4c 45 2c 50 25 28 41 29 0d 00 3c 06 20 ed 0d 00 |LE,P%(A)..<. ...| 000000a0 46 61 20 e3 20 6c 69 6e 65 3d 31 20 b8 20 36 30 |Fa . line=1 . 60| 000000b0 3a 43 4f 4c 55 4d 4e 3d 30 3a f5 20 43 4f 4c 55 |:COLUMN=0:. COLU| 000000c0 4d 4e 3d 43 4f 4c 55 4d 4e 2b 31 3a 50 52 49 4d |MN=COLUMN+1:PRIM| 000000d0 45 3d 50 25 28 36 30 2a 28 43 4f 4c 55 4d 4e 2d |E=P%(60*(COLUMN-| 000000e0 31 29 2b 6c 69 6e 65 29 3a e7 20 50 52 49 4d 45 |1)+line):. PRIME| 000000f0 3c 3e 30 20 8c 20 f1 20 50 52 49 4d 45 2c 3b 0d |<>0 . . PRIME,;.| 00000100 00 50 1a 20 fd 20 50 52 49 4d 45 3d 30 20 84 20 |.P. . PRIME=0 . | 00000110 43 4f 4c 55 4d 4e 3d 31 39 0d 00 55 06 20 f1 0d |COLUMN=19..U. ..| 00000120 00 5a 0b 20 ed 20 6c 69 6e 65 0d 00 5f 09 20 41 |.Z. . line.._. A| 00000130 24 3d be 0d 00 64 11 20 fd 20 50 25 28 31 31 34 |$=...d. . P%(114| 00000140 30 29 3d 30 0d 00 6e 07 20 ef 33 0d 00 78 08 20 |0)=0..n. .3..x. | 00000150 d9 23 30 0d ff |.#0..| 00000155