CS206 Data Structures

Programing Assignment#1

Due on Thursday, February 1, 2007

Problem: Write a Python program to compute the highest prime number in any given range N1..N2 (N1, and N2 will be input by the user). Show your program's output for several ranges (including some where there are no prime numbers in the range). Your program should ensure that the range is viable (i.e. N2 >= N1) and report any errors to the user and perform corrective measures.

Hand in a printout of your program along with several sample runs of your program.


 

Back to CS206 Materials