21y/o Computer science student with interests in fields like Cybersecurity, Quantum Computing, and Mathematics.
// Fermat's last problem x^n+y^n=z^n
#!/usr/bin/perl
use strict;
use warnings;
sub fermat {
my ($n) = @_;
for (my $x = 0; $x < 100; $x++) {
for (my $y = 0; $y < $x+1; $y++) {
for (my $z = 0; $z < ($x**$n)+($y**$n) +1; $z++) {
if (($x**$n)+($y**$n) == ($z**$n)) {
print "$x^$n + $y^$n == $z^$n\n";
}
}
}
}
my $e = fermat(5);
- đ Bachelor's degree in Computer Science and Mathematics
- đą Iâm currently learning Number Theory
- âī¸ Mastering:
.py
,.cpp
,.c
,.perl
,.java
,.html
,.css
.s
,.sh
,.go
Probably the most familiar equation on this list, the Pythagorean theorem relates the sides of a right triangle, where a and b are the lengths of the legs and c is the length of the hypotenuse. It also relates triangles to squares.
> The Pythagorean TheoremIf you can't explain it simply, you don't understand it well enough.
Albert Einstein