Jump to content
  • Advertisement
Sign in to follow this  

C++ Exercise

This topic is 2347 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! I wasted my entire easter holiday laying around doing nothing and I can't do this anymore. I need to work more. So i decided to make a "project" kind of thing where everyone could post exercises and we can help each other solve them. I actually need basic ones because i realised i don't know basic stuff like: finding if a number is prime. Really simple things like this can be sometimes hard to find on your own and can later help you because you can easly implement it.
The first thing i want to know is where i could make 2 threads...(a mod should help me here).

The first thread: Containing all the exercises in this form or with a few modifications. We should stick as much as we can to a standard tough.
Problem no. 1
//Difficulty: Beginner
Write a code that reads 10 numbers, checks if the numbers are prime and shows a total of prime numbers read.
//Example: Input|2,5,6,3,12,6,7,25,2,8 Output|5

The second thread: Like a forum that helps people solve the exercise.
Problem no. 1
I don't know how to check if a number is prime. Can someone help me?
//You may even add sample code here

Waiting for a mod to tell me where i should make the threads, or if they already exist and I didn't see them.
Also if people know any other sources of practice/exercise, I would like to hear from them.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!