Click here to Skip to main content
12,698,012 members (25,867 online)
Click here to Skip to main content

Tagged as



Write a C/C++ program to generate prime number list and check whether a number is prime or not

, 9 Nov 2012 CPOL
I can write the code for "Sieve of Eratosthenes" to generate all the prime number up to n. But I want to write a program that will generate and index all the prime number (up to n) into an array, than check whether a number is prime or not. Can anyone please help me to do it?For Example: if...



Compare Revision Minor Date Status Editor
3 - publicly available No 8-Nov-12 21:46 Available Ihteshamul Alam
2 No 8-Nov-12 21:45 Available Ihteshamul Alam
Add a space
1 No 8-Nov-12 21:44 Available Ihteshamul Alam


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Ihteshamul Alam
Bangladesh Bangladesh
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170118.1 | Last Updated 9 Nov 2012
Article Copyright 2012 by Ihteshamul Alam
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid