2011Fall7646 Homework 1

From Quantwiki
Jump to: navigation, search

Overview: The purpose of this assignment is to make sure you have Python up and running on your computer, and that you're starting the process of learning Python if you haven't already.

To Do: Write a program to compute and print the first 100 prime numbers (the first prime number is 2!).

Deliverable: Turn in two files as attachments by t-square. Please do not "zip" your files together first; just submit two separate files as named below:

  • primes.py (the program) and
  • primes.txt (the list of 100 prime numbers).

How to submit: Go to the t-square site for the class, then click on the "assignments" tab. Click on "add attachment" to add your two files. Once you are sure you've added both files, click "submit."