Category:ALGOL 68-primes: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created a page for ALGOL_68-primes - taking a leaf out of Wren's book)
 
(Fixed link to ALGOL 68 ...)
Line 1: Line 1:
{{library}}
{{library}}


'''ALGOL 68-Primes''' is a set of prime related routines and operators for use in [https://rosettacode.org/wiki/Category_ALGOL_68 Algol 68] programs.
'''ALGOL 68-Primes''' is a set of prime related routines and operators for use in [https://rosettacode.org/wiki/Category:ALGOL_68 Algol 68] programs.


To use this in a program, copy the source code from the [https://rosettacode.org/wiki/Category_talk:ALGOL_68-primes talk page] to a text file called ''primes.incl.a68'', putting it in the same directory as the importing program.
To use this in a program, copy the source code from the [https://rosettacode.org/wiki/Category_talk:ALGOL_68-primes talk page] to a text file called ''primes.incl.a68'', putting it in the same directory as the importing program.

Revision as of 14:19, 29 August 2021

Library
This is an example of a library. You may see a list of other libraries used on Rosetta Code at Category:Solutions by Library.

ALGOL 68-Primes is a set of prime related routines and operators for use in Algol 68 programs.

To use this in a program, copy the source code from the talk page to a text file called primes.incl.a68, putting it in the same directory as the importing program.
Then add PR read "primes.incl.a68" PR to the source of the program.

If you are using ALGOL_68G or another compiler/interpreter that supports the read pragmatic comment, then the program can be run as usual.
For other compilers, the ALGOL 68 pre-processor in Compiler/Simple file inclusion pre processor can be used (see the instructions on that page).

Pages in category "ALGOL 68-primes"

The following 73 pages are in this category, out of 73 total.