You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
288 B

#include <iostream>
bool
foo()
{
const int i = 3;
if ( (i == 2) || (i == 3) || (i == 5) ) {
std::cerr << "Very small prime!\n";
}
const auto isSmallPrime = (i == 2) || (i == 3) || (i == 5) || (i == 7) || (i == 11);
return isSmallPrime || (i == 13) || (i == 17) || (i == 19);
}