2025 AMC 8 Problem 23

Improve Your AMC 8 Score

Practice with AMC 8 problems by topic and difficulty level.

Improve Your AMC 8 Score

Practice with AMC 8 problems by topic and difficulty level.

One Page to Learn. One Point to Earn.

In This Page:

To help you master 2025 AMC 8 Problem 23, this page includes:

  • The original AMC problem to try, plus the correct answer
  • Clear, step-by-step solutions using different methods
  • Key ideas, useful formulas, and takeaways you can apply to similar problems
  • Related problems from past AMC exams, plus new practice problems that build the same skills

Want more practice? Scroll down to download Think Academy’s AMC 8 practice packs and keep building your AMC 8 skills.

2025 AMC8 Problem 23

AMC 8 · 2025 · Question 23
Hard
Number TheoryPrime NumbersPrimes & Prime Factorization

23.

How many four-digit numbers have all three of the following properties? (I) The tens and ones digit are both 9. (II) The number is 1 less than a perfect square. (III) The number is the product of exactly two prime numbers.

Choose one answer · Attempt 1 of 3

Small Hint

If ends in 99, what does end in? What does that tell you about its square root ?

Choose one answer · Attempt 2 of 3

Small Hint

If ends in 99, what does end in? What does that tell you about its square root ?

Choose one answer · Attempt 3 of 3

Small Hint

If ends in 99, what does end in? What does that tell you about its square root ?

Solution

Factorization and Case Checking Method

Express the number as and factor it as . For to have exactly two prime factors, both and must be prime. The condition that ends in 99 will limit to a short list of multiples of 10.

Difference of Squares Formula: . This fundamental identity allows us to transform ‘one less than a perfect square’ into a product of two factors.

Step 1: Set up the algebraic equation for the number

We are given that the number is 1 less than a perfect square. Let the four-digit number be and the perfect square be . This gives us a direct equation for .

Step 2: Use the last digits to restrict the perfect square

The problem states that the tens and ones digits of are both 9, meaning ends in 99. Therefore, must end in 00. Since , the perfect square is a multiple of 100. This implies its square root must be a multiple of 10.

Step 3: Determine the possible range of values for

Because is a four-digit number, it must be between 1000 and 9999. We can plug this range into our equation to find the bounds for . Taking the square root gives us the bounds for , allowing us to list all valid multiples of 10.

Step 4: Use the prime factorization property

We are told is the product of exactly two prime numbers, and . We can also factor using the difference of squares into . Because , neither factor is 1. The only way to split a product of two primes into two integer factors (with neither being 1) is if the factors are exactly the two primes themselves. Thus, and must both be prime numbers.

Step 5: Test the candidates for

We test each candidate to see if both and are prime numbers. We can stop checking a pair as soon as we find one composite number.

Step 6: Conclude the final count

Only produces a valid pair of primes. This corresponds to exactly one four-digit number.

Correct answer: B.
There is exactly 1 such number (3599). This matches answer choice B. Final Check: 3599 ends in 99, 3599 + 1 = 3600 = 60^2, and 3599 = 59 * 61, where both 59 and 61 are prime. All conditions are perfectly satisfied.

Twin Prime Divisibility Shortcut

We can bypass testing most of the cases by observing that , , and are three consecutive integers. Because and must be twin primes greater than 3, must be a multiple of 3.

Divisibility of Consecutive Integers: Among any three consecutive integers, exactly one must be a multiple of 3. We can use this to quickly eliminate candidates.

Step 1: Set up the required conditions for

From our standard method, we know must be a multiple of 10 between 40 and 100. We also established that and must both be prime numbers.

Step 2: Analyze the divisibility of three consecutive integers

Consider the three consecutive integers centered at . According to fundamental divisibility rules, exactly one of these three consecutive integers must be a multiple of 3.

Step 3: Deduce that is a multiple of 3

We need and to be prime numbers. Since the smallest candidate for is 39, both prime numbers would be much larger than 3. A prime number strictly greater than 3 cannot be a multiple of 3. Therefore, neither nor is the multiple of 3. The multiple of 3 must be itself.

Step 4: Combine divisibility rules to limit candidates

We already know that is a multiple of 10. Since 3 and 10 share no common factors, must be a multiple of their product, 30. Looking at our list of candidates, only two numbers fit this strict requirement.

Step 5: Test the remaining candidates

By applying this logic, we bypassed five unnecessary tests. We only need to check and . We find that yields two primes, while yields 91, which is composite. This leaves exactly one valid number.

Correct answer: B.
We confidently conclude there is 1 valid number (choice B). The divisibility shortcut ensures no other cases could possibly yield two prime factors.

Similar Problems in Real Exams

The following five AMC 8 problems are closely related to AMC 8 2025 Question 23. These real AMC 8 problems test the same key concept—Primes & Prime Factorization. Click any problem to learn and practice, then continue to the adapted practice section later in this article for more problems to try.

2023 AMC 8 Problem 4

2016 AMC 8 Problem 9

2014 AMC 8 Problem 4

2014 AMC 8 Problem 23

2012 AMC 8 Problem 18

Adapted Problems to Practice

1 / 10

What Formulas Do You Need for This Problem?

  • Difference of Squares Factorization:

and are any numbers or algebraic terms. It is used to factor into , directly exposing the potential prime factors of .

  • Unique Divisors of a Product of Two Primes:

If where and are prime, its only positive divisors are , , , and .

and are prime numbers. It proves that the integer factors and must be exactly the primes and , since neither algebraic factor can be 1 when .

  • Divisibility of Consecutive Integers:

Among any consecutive integers, exactly one is a multiple of .

is a positive integer (we used ). It establishes that one of the numbers must be divisible by 3, which is the core logical engine of the shortcut method.

Key Takeaway: Remember This Strategy for Next Time

A number is described as '1 less than a perfect square' and the problem involves factors or primes.

Try: Write it as and immediately factor it as .

Why: Factoring translates an additive relationship (subtraction of 1) into a multiplicative relationship, making it easy to compare against prime factorization rules.

A product of two primes is split into two integer factors.

Try: If you can prove that both factors are strictly greater than 1, they must be exactly the two prime numbers.

Why: The only positive divisors of are , and . Eliminating (and therefore ) leaves only the primes themselves.

You need to check if adjacent odd numbers are both prime (twin primes).

Try: Look at the even number strictly between them and check if it is a multiple of 3 (and thus a multiple of 6).

Why: Out of any three consecutive integers, one must be a multiple of 3. If the two odd numbers are prime (and greater than 3), neither can be the multiple of 3, forcing the middle number to carry the divisibility by 3.


Unlock More Targeted AMC 8 Practice Resource

Build Stronger Skills. Practice with Purpose. Prepare with Confidence.

Get a complete set of module-focused AMC 8 practice workbooks designed to help students strengthen core concepts, improve problem-solving strategies, and feel more confident on test day.

With 250 practice problems organized across six essential AMC 8 modules, students can focus on one skill area at a time and learn from clear, step-by-step solutions.

AMC8 Practice Resource Pack Promo Cropped Under 2MB

Download the Free AMC 8 Practice Resource Pack

Inside, You’ll Find:

  • 6 module-focused practice workbooks: Algebra, Geometry, Number Theory, Combinatorics, and Probability & Statistics.
  • 250 AMC 8-style practice problems covering essential concepts and common competition question types.
  • Complete answer keys and step-by-step solutions to help students understand the reasoning behind each answer.
  • Organized, print-ready materials for independent study, guided practice, or extra preparation at home.

Get Instant Access: Fill out the form below to receive our exclusive resource pack.

*Please enter a valid email address to access the materials and receive future prep updates.

 AMC 8 Practice Resource Pack
Free Download

After submission, the download link is in the confirmation message on this page.


About Think Academy

Think Academy US Online, part of TAL Education Group (NYSE: TAL), provides structured math and ELA programs that help students build strong academic foundations and grow with confidence. With expert teachers, proven methods, and innovative AI tools, we nurture learning ability, curiosity, and healthy study habits that support long-term growth and a lifelong love of learning.

Check our programs:

Want more insights on Math & ELA learning and parenting? Fill out the form on this page and subscribe to our newsletter for weekly tips and the latest resources. Join 100,000+ families in our Parent Community!

Leave a Comment & Share Your Thoughts!

Think Academy AMC 8 Resource Hub

Get expert PreK–12 insights in your inbox every week

To support your child’s learning, confidence, and growth:
✓ Competition & Test Prep
✓ Printable Worksheets
✓ Webinar Invites

Join 100,000+ subscribers in our parent community.

Share This Story, Choose Your Platform!

Related Posts