Skip to content

Commit

Permalink
Merge pull request #7 from Xav83/problem5
Browse files Browse the repository at this point in the history
Improves const correctness of the function isSexyPrimePair in the problem 5
  • Loading branch information
Xav83 authored Apr 16, 2020
2 parents 939ad82 + 6828bc4 commit 93ede3b
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 93ede3b

Please sign in to comment.