Skip to content

Commit

Permalink
Improves const correctness of the function isSexyPrimePair in the pro…
Browse files Browse the repository at this point in the history
…blem 5
  • Loading branch information
Xav83 committed Apr 16, 2020
1 parent 939ad82 commit 6828bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TheModernCppChallenge/app/src/main/cpp/Problem_5.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <vector>
#include <utility>

bool isSexyPrimePair(unsigned int firstNumber, unsigned int secondNumber)
static const bool isSexyPrimePair(unsigned int firstNumber, unsigned int secondNumber)
{
return (std::abs(static_cast<int>(firstNumber - secondNumber)) == 6) && isPrime(firstNumber) && isPrime(secondNumber);
}
Expand Down

0 comments on commit 6828bc4

Please sign in to comment.