Gitiles
Code Review
Sign In
gerrit.avm99963.com
/
edu
/
college-misc
/
c2d9f31eee03d35d3ee3f1577a027220e3294ca6
/
.
/
quad9
/
galois
/
labs
/
lab1
/
utils
/
inverses.cc
blob: c54a0195de36326b8b01782a1f183a25e0aece15 [
file
] [
log
] [
blame
]
#include
<iostream>
int
main
()
{
int
p
=
43
;
for
(
int
i
=
1
;
i
<
p
;
++
i
)
{
for
(
int
j
=
1
;
j
<
p
;
++
j
)
{
if
((
i
*
j
)
%
43
==
1
)
{
std
::
cout
<<
i
<<
"^{-1} = "
<<
j
<<
std
::
endl
;
break
;
}
}
}
}