Skip to content

arnabp-x64/Prime_num_printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prime_Num_Printer (formally PrimeNumberPrinter)

A simple C++ program that prints prime numbers — written by a beginner for beginners.

This project helps anyone learning C++ to see how prime number logic works with functions and looping. 🚀


🧠 Overview

This program:

  • Takes a number as input
  • Checks each number from 2 up to that number
  • Prints all the prime numbers found

Prime numbers are numbers greater than 1 with no divisors other than 1 and themselves.


💻 Features

  • Easy to understand C++ code
  • Beginner-friendly structure
  • Demonstrates basic functions and loops
  • Works on any standard C++ compiler

📥 Installation

To use this project, first clone the repo:

git clone https://github.com/arnabp-x64/Prime_num_printer.git

Then compile the code (example using g++):

g++ Primenumprinter.cpp -o prime_printer

▶️ Usage

Run the compiled program

./prime_printer

Then enter a number when prompted — the program will print if the number is prime or not.


📁 Project Structure

File Purpose
Primenumprinter.cpp Main program logic
Functions.cpp Helper functions
Primenumprinter.exe Executable file
LICENSE Project license

🤝 Contributing

If you want to improve this project:

  1. Fork the repository
  2. Make your changes
  3. Create a pull request

All helpful improvements are welcome! ✨


❓ Questions

Have suggestions or want help understanding the code? Open an issue and ask!

Or, Email me at Gmail

About

A simple C++ program that prints prime numbers — written by a beginner for beginners.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages