Skip to content

Commit c5fddff

Browse files
Delete taxicab verification
1 parent 20f2bd7 commit c5fddff

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

example/src/taxicab_number.cpp

-20
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,6 @@ void TaxiCabNumberStr::report_taxicab_number(const int rank) {
6868
for (int j = 0; j < data.size(); j += 2) {
6969
uint32_t a = std::stoul(data[j]);
7070
uint32_t b = std::stoul( data[j + 1]);
71-
72-
#ifdef CHECK_TAXICAB_NUMBER
73-
if (ra.first != (a * a * a + b * b * b) {
74-
std::cerr << "\n*** ERROR: "
75-
<< static_cast<int64_t>(ra.first) << " != "
76-
<< a << "^3 + "
77-
<< b << "^3\n";
78-
}
79-
#endif
80-
8171
found.cube.push_back({a, b});
8272
}
8373

@@ -200,16 +190,6 @@ void TaxiCabNumberInt::report_taxicab_number(const int rank) {
200190
for (int j = 0; j < data.size(); j += 2) {
201191
uint16_t a = data[j];
202192
uint16_t b = data[j + 1];
203-
204-
#ifdef CHECK_TAXICAB_NUMBER
205-
if (ra.first != (a * a * a + b * b * b) {
206-
std::cerr << "\n*** ERROR: "
207-
<< static_cast<int64_t>(ra.first) << " != "
208-
<< a << "^3 + "
209-
<< b << "^3\n";
210-
}
211-
#endif
212-
213193
found.cube.push_back({a, b});
214194
}
215195

0 commit comments

Comments
 (0)