SoatDev IT Consulting
SoatDev IT Consulting
  • About us
  • Expertise
  • Services
  • How it works
  • Contact Us
  • News
  • August 11, 2025
  • Rss Fetcher

The other day I needed to test some software with a moderately large prime number as input. The first thing that came to mind was 8675309. This would not be a memorable number except it was in the chorus of the song 867-5309/Jenny.

Tommy Tutone 867-5309/Jenny single

It turned out that 8675309 was too large. The software would take too long to run with this input. It occurred to me that while I could quickly come up with a prime number with seven digits, nothing came to mind immediately with four, five, or six digits. This post will share some numbers I came up with.

Symmetry

Symmetry makes things more memorable, so one thing to try is finding primes with a symmetric pattern of digits. The numbers 13331 and 18181 are examples of palendromic primes, prime numbers that read the same forwards and backwards. You can find more palendromic primes here.

This won’t help find memorable primes with four or six digits because all palendromic numbers with an even number of digits are divisible by 11.

Consecutive digits

The number 123457 is a memorable six-digit prime, being the first seven digits with six removed. Maybe there are other variations that are memorable. (Or the you find memorable; memorability is subjective.)

Consecutive digits of π

A variation on looking for primes in consecutive integers is to look for primes in consecutive digits of another number, the most famous being π.

314159 is a pi prime, and it’s memorable if you know the value of π to at least six digits. This won’t help us find a memorable four-digit prime since 3141 is divisible by 9.

Years

The last prime number year that we lived through was 2017, and the next, God willing, will be 2027.

1999 was a prime. It was also the title of a song that came out in 1982, one year after the song 867-5309/Jenny.

Powers of 2

Programmers will likely recognize 65536 as 216, and 65537 is prime, the largest known Fermat prime.

Whether something is memorable depends on what previous memories you can connect it to. Many people are familiar with powers of 2 and would find primes of the form 2k ± 1 memorable.

The number 213 = 8192 is not as familiar as 216 = 65536, but 8191 is a four-digit prime.

Summary

Having written this post, the following responses are likely what would come to mind if you asked me for primes of various lengths.

  1. 7
  2. 97
  3. 997
  4. 1999
  5. 18181
  6. 314159
  7. 8675309

 

The post Memorable Primes first appeared on John D. Cook.

Previous Post
Next Post

Recent Posts

  • Electronic Arts blocks more than 300,000 attempts to cheat after launching Battlefield 6 beta
  • Renewing Chat on Stack Overflow
  • Chris’ Corner: Browser Wars Micro Edition
  • Revel shuts down its ride-hail business to focus on EV charging
  • Nvidia unveils new Cosmos world models, infra for robotics and physical uses

Categories

  • Industry News
  • Programming
  • RSS Fetched Articles
  • Uncategorized

Archives

  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023

Tap into the power of Microservices, MVC Architecture, Cloud, Containers, UML, and Scrum methodologies to bolster your project planning, execution, and application development processes.

Solutions

  • IT Consultation
  • Agile Transformation
  • Software Development
  • DevOps & CI/CD

Regions Covered

  • Montreal
  • New York
  • Paris
  • Mauritius
  • Abidjan
  • Dakar

Subscribe to Newsletter

Join our monthly newsletter subscribers to get the latest news and insights.

© Copyright 2023. All Rights Reserved by Soatdev IT Consulting Inc.