AI Tutor
Library
›Library›Mathematics›Discrete Math for Shockers›Some Classic Number Theory›Prime Numbers
Back to Discrete Math for Shockers

Prime Numbers

Unique factorization as the Fundamental Theorem of Arithmetic, the infinitude of primes, and trial division as a test for primality.

Discrete Math for Shockers, Prime Numbers

Status
FlagsLoading your progress…

4 exercises

Exercise 1

Find the prime factorization of each of the following integers:

  1. 39
  2. 125
  3. 101
  4. 143
  5. 289
  6. 899
2.5

Exercise 2

Find the prime factorization of 10!10! (10 factorial, not “yay ten!”)

2.5

Exercise 3

Using the is_it_prime function above (or write your own in your favorite language!), factor the following large integers.

  1. 654321
  2. 123456
  3. 987654321
  4. 123456789
2.5

Exercise 4

Prove that every prime number greater than 3 is either one more or one less than a multiple of 6.

2.5
Divisibility and CongruencesGCDs and The Euclidean Algorithm

Adapted from Discrete Math for Shockers © 2021 John Hammond. Licensed under CC BY-SA 4.0. Source: Discrete Math for Shockers. Imported at revision 2538beb.

AI Tutor

A study tool built on open educational resources. Content from OpenStax and other openly licensed textbooks — every book, section and exercise page carries its source’s license and attribution.

Product
  • About AI Tutor
  • Library
  • Premium
Legal
  • Terms of Service
  • Privacy Policy
© 2026 AI Tutor. Openly licensed content is attributed to its authors under their respective licenses.