<link rel="stylesheet" href="styles.cf390c6bfbe7555f.css">
Institutional Repository

Finding All Primes Less Than Some Maximum C.C.Handley University of Natal Durban4001

Loading...
Thumbnail Image

Date

Authors

Handley, C.C.

Journal Title

Journal ISSN

Volume Title

Publisher

Computer Society of South Africa (on behalf of SAICSIT)

Abstract

The problem of finding all prime numbers less than some specified maximum is frequently set as an exercise to beginning programmers, particular students doing their first programming course at University. Several different solutions to this problem are presented and tested. Experimentally derived timings are presented for these algorithms implemented in different languages. From these times, we can draw the conclusions that using only primes as divisors is not significantly faster than using all odd numbers, and that, in certain circumstances, FORTRAN programs may well take longer than equivalent Pascal programs.

Description

Keywords

Citation

Handley, C.C. (1986)Finding All Primes Less Than Some Maximum . Quaestiones Informaticae Vol 4 No 2 1986

Endorsement

Review

Supplemented By

Referenced By