/primeChecker

Basic C-Language Prime-Number Checking Program

Primary LanguageC

README: Prime Number Checker

Description

This is a simple C program that checks whether a given positive integer is prime or composite. The program takes user input and determines the primality of the provided number. This is a useful utility for educational purposes and understanding the prime-checking algorithm.

Table of Contents

Usage

To use this program, compile the provided primecheck.c file using a C compiler (such as GCC) and run the resulting binary.

gcc primecheck.c -o primecheck
./primecheck

The program will prompt you to enter a positive integer, and it will then output whether the number is prime or composite.