• Skip to secondary menu
  • Skip to main content
  • Skip to primary sidebar
  • My Store
  • Glossary
  • Home
  • About Me
  • Contact Me

Statistics By Jim

Making statistics intuitive

  • Graphs
  • Basics
  • Hypothesis Testing
  • Regression
  • ANOVA
  • Probability
  • Time Series
  • Fun
  • Calculators

Prime Numbers Explained

By Jim Frost 2 Comments

What Are Prime Numbers?

Prime numbers are natural numbers greater than 1 that have exactly two factors: 1 and itself. A prime can be divided evenly only by itself and 1. For example, 2, 3, 5, and 7 are prime numbers because they are evenly divisible by themselves and 1.

The number 1 is not a prime number because it has only one factor (itself). The first prime number is 2, which is also the only even prime number. All other even numbers are composite because they are divisible by 2.

In this post, you’ll learn what prime numbers are, how they differ from composite numbers, why they are important in the real world, and the mysterious patterns mathematicians have discovered in their distribution.

Prime and Composite Numbers

Numbers greater than 1 fall into two categories: prime numbers and composite numbers.

  • A prime number has only two factors: 1 and itself. Example: 17 (factors: 1, 17).
  • A composite number has more than two factors. Example: 24 (factors: 1, 2, 3, 4, 6, 8, 12, 24).
Prime Numbers Composite Numbers
Numbers greater than 1 with only two factors (1 and itself) Numbers greater than 1 with more than two factors
2 is the smallest and only even prime number 4 is the smallest composite number
Examples: 2, 3, 5, 7, 11, 13, 17, … Examples: 4, 6, 8, 9, 10, 12, …

Factor Trees: Breaking Down Numbers

A factor tree is a way to show how a number breaks down into its prime factors. Starting with the original number, you divide it into two factors, then continue factoring each number until only prime numbers remain.

For example:

  • The prime number 23 cannot be broken down further because it has only two factors (1 and 23).
  • The composite number 48 can be factored into 2 × 24, then 2 × 12, then 2 × 6, and finally 2 × 3—showing that 48 = 2 × 2 × 2 × 2 × 3.

Because every composite number can be expressed as a product of primes, this method helps break numbers into their prime building blocks.

Prime factors can help simplify square roots. Learn more about it in Square Roots Explained.

List of Prime Numbers from 1 to 100

There are 25 prime numbers between 1 and 100. Here’s a list:

Range Primes
1 to 10 2, 3, 5, 7
11 to 20 11, 13, 17, 19
21 to 30 23, 29
31 to 40 31, 37
41 to 50 41, 43, 47
51 to 100 53, 59
61 to 70 61, 67
71 to 80 71, 73, 79
81 to 90 83, 89
91 to 100 97

Properties of Prime Numbers

  • A prime number is greater than 1.
  • It has exactly two factors: 1 and itself.
  • The only even prime number is 2.
  • Every integer greater than 1 can be written as a product of primes. This is called the Fundamental Theorem of Arithmetic and is a key idea in number theory.
  • The square root of any prime number is always a irrational number because you cannot write it as a simple fraction.

Mysterious Patterns in the Primes

Prime numbers have fascinated mathematicians for thousands of years. The ancient Greeks studied them extensively. Around 300 BCE, the mathematician Euclid proved that there are an infinite number of them—meaning they never run out, no matter how high you count.

As numbers get larger, primes become less frequent, and the gaps between them tend to grow. As the value increases, the probability that a number is prime decreases. On average, the distance between consecutive primes increases, following a pattern predicted by the Prime Number Theorem. However, they don’t always get farther apart—some pairs, like twin primes (numbers that differ by 2), may continue infinitely, though this is still unproven. Conversely, mathematicians have also found that prime gaps can be extremely large, meaning that some numbers have no primes nearby. Despite this, research suggests that prime gaps grow at a predictable rate, and understanding this pattern remains an active area of mathematical discovery.

If you arrange numbers in a spiral and highlight the primes, they form diagonal streaks instead of appearing randomly. This surprising pattern, called the Ulam Spiral (shown below), suggests hidden order in how they are distributed.

The Ulam spiral, which displays the patterns in prime numbers.

Patterns in prime numbers also play a role in Pascal’s Triangle.

One of the biggest unsolved problems in math, the Riemann Hypothesis, suggests a deep pattern in how primes are distributed. Mathematicians believe solving it would unlock their secrets and even improve encryption methods used in cybersecurity.

Despite their simple definition, they have mysterious patterns. Mathematicians are still trying to understand how they are distributed on the number line.

Why Are Prime Numbers Important?

Prime numbers are essential in modern technology, especially in cryptography. Many encryption systems, including the RSA algorithm, use them to secure online communication, banking, and data privacy.

The search for larger examples is ongoing. The largest known examples have been discovered using computers, and projects like the Great Internet Mersenne Prime Search (GIMPS) help find new ones.

Prime numbers are the building blocks of whole numbers. Understanding them helps with factorization, encryption, and deeper mathematical patterns.

Share this:

  • Tweet

Like this:

Like Loading…

Related

Filed Under: Basics Tagged With: math

Reader Interactions

Comments

  1. Marty Shudak says

    March 24, 2025 at 12:10 pm

    Thanks, Jim. Great article on math concepts as a companion to your already awesome stats concepts. Hope you will continue to throw these sorts of articles in from time to time.

    Loading...
    Reply
    • Jim Frost says

      March 24, 2025 at 3:34 pm

      Hi Marty,

      Thanks so much! Yes, I do plan to write more. I’ve enjoyed writing them more than I thought. I’m glad you’ve enjoyed them as well!

      Loading...
      Reply

Comments and QuestionsCancel reply

Primary Sidebar

Meet Jim

Iโ€™ll help you intuitively understand statistics by focusing on concepts and using plain English so you can concentrate on understanding your results.

Read More...

Buy My Introduction to Statistics Book!

Cover of my Introduction to Statistics: An Intuitive Guide ebook.

Buy My Hypothesis Testing Book!

Cover image of my Hypothesis Testing: An Intuitive Guide ebook.

Buy My Regression Book!

Cover for my ebook, Regression Analysis: An Intuitive Guide for Using and Interpreting Linear Models.

Subscribe by Email

Enter your email address to receive notifications of new posts by email.

    I won't send you spam. Unsubscribe at any time.

    Buy My Thinking Analytically Book!

    Cover for my book, Thinking Analytically: An Guide for Making Data-Driven Decisions.

    Top Posts

    • F-table
    • Z-table
    • Cronbachโ€™s Alpha: Definition, Calculations & Example
    • How To Interpret R-squared in Regression Analysis
    • Box Plot Explained with Examples
    • How to Interpret P-values and Coefficients in Regression Analysis
    • Cohens D: Definition, Using & Examples
    • Interpreting Correlation Coefficients
    • Multinomial Logistic Regression: Overview & Example
    • Root Mean Square Error (RMSE)

    Recent Posts

    • Data Collection Methods: Step-By-Step Guide with Examples
    • ANOVA Calculator
    • Positive Predictive Value: Meaning, Formula, and Interpretation
    • Median Absolute Deviation Calculator
    • Median Absolute Deviation: Definition, Finding & Formula
    • Outlier Calculator

    Recent Comments

    • Skata na fas on Comparing Regression Lines with Hypothesis Tests
    • Jim Frost on Comparing Regression Lines with Hypothesis Tests
    • Skata na fas on Comparing Regression Lines with Hypothesis Tests
    • Skata na fas on Comparing Regression Lines with Hypothesis Tests
    • Jim Frost on Pareto Chart: Making, Reading & Examples

    Copyright © 2026 · Jim Frost · Privacy Policy

    %d