PICK ONE OF THESE! DON'T DO BOTH. PICK ONE OF THEM.



A prime number is any number that has no divisors except itself and one. Twelve is not prime because it can be divided by six. Six is not prime because it can be divided by three. Three is prime because nothing divides three except three and one.

The first bunch of prime numbers are 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97. You can find a list of the first 10,000 primes here.

Your mission is to make a program that prints every prime number below 100.

This assignment is out of 40,000 points.





I want to buy a house that costs $300,000. Every month I can pay $800. The bank wants 5% interest per year, which is 5%/12 per month.

Interest is compounded monthly, not continuously. So don't use the mortgage formula, just compute the amount each month.

How much money will I owe after 10 years?