Find all the prime numbers from 1 to 100

Home Forums Challenges Find all the prime numbers from 1 to 100

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #9083
    daryl
    Participant

    Our second challenge here is to print out all the prime numbers from 1 to 100.

    So the output will be something like 2 3 5 7…

    Note the definition of prime number:
    A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.