Creative Commons License Copyright © Michael Richmond. This work is licensed under a Creative Commons License.

Write a simple computer program

The task this week is for you to create a computer program which computes all the prime numbers between 2 and 100; those who want an extra challenge can write one which allows the user to set the lower and upper bounds of the range at run time.

You program should print a series of numbers, one per line, like this:


   2
   3
   5
   7
  11

You may use any computing language or environment you wish.

I suggest that you

If you can, please bring a computer with you to class, so that you (and others) can run your program. Print out your manual page onto paper and bring it with you to class as well.


This page maintained by Michael Richmond. Last modified Aug 31, 2015.

Creative Commons License Copyright © Michael Richmond. This work is licensed under a Creative Commons License.