In his challenge I ask that you do the following things:

Create a program that will:

  1. Use loops to complete the tasks below
  2. Print out a list of all the numbers that meet the following criteria, one item per line.
  3. Are either: Prime, or Multiples of 3, or 8, but not both 3 and 8, less than 2500

Concepts used: Variables, loops, arithmatic functions, breaks

You should be able to do this by: Lesson 13 — 16 will help.

My solution: –Will come back and add one eventually

Please note that my solutions are not checked thoroughly, and should only be used for reference. They are often non-optimal solutions that could be improved upon (by you!). I keep these intentionally rough for just that reason.

Last modified: October 14, 2013