Lambda School Unit 2 Portfolio Project

Image source: Jason Davies

What is a prime number?

  • A prime number is a number with only two factors, itself and one.
  • A prime number is only divisible by itself and one.
  • A prime number cannot be produced by any two numbers (not including itself).

The first few primes are: {2, 3, 5, 7, 11, 13, 17, 19, 23, …}

Notice there are numbers missing in the above set if we expect to count in order (1, 2, 3, 4…). This is because all those missing numbers are some combination of the primes. …

Dennis Smith

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store