Skip to content

JstMeJosh/primeNumberCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

🧮 Prime Number Calculator

A beautiful, interactive Prime Number Calculator and Checker built with HTML, Tailwind CSS, and JavaScript.
It’s an educational web tool that helps users — especially students — easily check if a number is prime and explore prime numbers up to any limit.


🎯 Features & Highlights

Instant Prime Check
Type or tap numbers to instantly determine if they’re prime.

🧮 Generate Prime Numbers
Quickly list all prime numbers up to any number you enter using the Sieve of Eratosthenes algorithm.

🎓 Educational Design
Includes explanations of prime numbers and real-world applications in cryptography and computer security.

📱 Responsive Interface
Fully mobile-friendly, intuitive, and styled with Tailwind CSS for a modern user experience.

💬 Interactive Learning
Fun animations and user feedback to make learning math engaging and visually clear.


💡 What Are Prime Numbers?

A prime number is a whole number greater than 1 that has no positive divisors other than 1 and itself.

Number Status Explanation
2 ✅ Prime Only divisible by 1 and 2
9 ❌ Not Prime Divisible by 3
17 ✅ Prime Divisible only by 1 and 17

🧠 Educational Purpose

This project was designed to help students and beginners:

  • Understand how primes work.
  • Visualize number theory concepts in an interactive way.
  • Learn basic JavaScript logic through a real, usable project.

🛠️ Tech Stack

  • HTML5 – Structure
  • Tailwind CSS – Styling
  • JavaScript (ES6) – Logic and interactivity

🧩 How It Works

  1. Enter a number using the keypad or input field.
  2. Click “Check” to instantly see if it’s prime.
  3. Use the “Generate Primes” section to list all primes up to your chosen range.

Behind the scenes, it uses the Sieve of Eratosthenes algorithm — one of the most efficient ways to find prime numbers.


🤝 Collaborate with Joshua

Want to build something like this for your school, child, or classroom?
I’m open to collaborations, tutoring, or creating custom educational tools.

📱 Chat with Me on WhatsApp


🧾 License

© Joshua Nnorom – Open source for learning and educational purposes.


“Math becomes fun when it’s interactive — learn, play, and discover the beauty of numbers!”

Releases

No releases published

Packages

 
 
 

Contributors

Languages