aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/is_prime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/is_prime.cpp')
-rw-r--r--src/cmd/is_prime.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/is_prime.cpp b/src/cmd/is_prime.cpp
index 5a95f0a12..c3bf8970e 100644
--- a/src/cmd/is_prime.cpp
+++ b/src/cmd/is_prime.cpp
@@ -13,7 +13,7 @@ int is_prime(int argc, char* argv[])
{
if(argc != 2 && argc != 3)
{
- std::cerr << "Usage: " << argv[0] << " n <prob>\n";
+ std::cerr << "Usage: " << argv[0] << " n <prob>" << std::endl;
return 2;
}
@@ -30,12 +30,12 @@ int is_prime(int argc, char* argv[])
if(prime)
{
- std::cout << n << " is prime\n";
+ std::cout << n << " is prime" << std::endl;
return 0;
}
else
{
- std::cout << n << " is not prime\n";
+ std::cout << n << " is not prime" << std::endl;
return 1;
}
}