Posts by LuizM3 • 11 points
1 post
-
1
votes2
answers895
viewsA: Add prime numbers within a vector
Your code to check if the number is prime needs to be inside a function, where you pass the number of the main is, and the routine returns whether it is a prime or not. Depending on the result, you…