Click here to Skip to main content
11,645,349 members (70,916 online)
Click here to Skip to main content
Add your own
alternative version

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 2.5K
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...

Revisions


  

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

License

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

Share

About the Author

Ihteshamul Alam
Student
Bangladesh Bangladesh
No Biography provided

You may also be interested in...

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