Create a program that computes all prime numbers less than max number


I have to create a program that computes all prime numbers less than the max number by storing them in an array and then printing them 10 primes per row.

This is what I have to do:
1. Create a void function to get the user input.
2. Create a function to find the number of prime numbers from 1 max_number.
3. Create a function to load the primes into array.
4. Create a void function to output the values to the screen using this array.

Thank you in advanced for the help!
Edit
Topic archived. No new replies allowed.