22y/o Software Developer and Data Scientist 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
- 🌱 I’m currently learning Topology
- ⚙️ Mastering:
.py
,.cpp
,.c
,.perl
,.java
,.html
,.css .s
,.sh
,.go
,.rs
,.sql
,.sh
The symbol on the left is an infinite sum, while the one on the right is an infinite product. Theorized by Leonhard Euler once again, this equation relates the natural numbers (n = 1, 2, 3, 4, 5, etc.) on the left side to the prime numbers (p = 2, 3, 5, 7, 11, etc.) on the right side. Moreover, we can choose s to be any number greater than 1, and the equation is true. The left side is the common representation of the Riemann zeta function.
The Euler Product FormulaIt is through science that we prove, but through intuition that we discover.
Henri Poincaré