Introduction
In this lab, we will write a C program that will find the first n prime numbers using nested for loops. The value of n will be input by the user. We will iterate n times to find all the prime numbers.
Note: You need to create the file
~/project/main.c
yourself to practice coding and learn how to compile and run it using gcc.
cd ~/project
## create main.c
touch main.c
## compile main.c
gcc main.c -o main
## run main
./main