blob: ac064f91eedf3946a638e54bcd75149062165739 [file] [log] [blame]
Adrià Vilanova Martínez4caba882021-10-06 21:51:23 +02001#include <iostream>
2
3int main() {
4 int p = 43;
5 for (int i = 0; i < p; ++i) {
6 int a = (i*i*i) % p;
7 std::cout << i << "^3 = " << a << std::endl;
8 }
9}