Using brute force isn’t particularly the best solution when it comes to determining primes. Brute Force Example: Sieve of Eratosthenes: This method tries all the numbers, but as soon as a prime number is found all the multiples of it is marked as not prime, meaning there are less options…
Math
Python Simple and Compound Interest Calculator
Don’t have a calculator? Don’t worry. Just paste this code into Python and let Python do all the work.
SVB Bank
The Silicon Valley Bank Became Bankrupt Silicon Valley Bank, SVB for short, was ranked number 63 in 2021 according to the USA’s top banks. In 2022, it skyrocketed to number 16, an insane feat. In 2023 however, it became bankrupt within a span of 2 days. Here is how this…
Conjugate
Conjucates are very useful when it comes to simplifying fractions with an irrational denominater. A conjugate is where you change the signs between two terms. Take a look at the polynomial below: If you try to add this fraction to a rational fraction like 1/3, it will be very exhausting…
How to Find if a Number is Divisible by Another (Up to 20)
1: Yes. 2: Examine the last digit of N. If it is an even number, then N is divisible by 2. 3: Add the sum of the digits of N and call it P. If P is divisible by 3, than N is divisible by 3. 4: Take the last…
Fastquant
Fastquant is a new python package that is related to stocks. Using only two lines, you can predict which stocks are good to buy, and which stocks you should sell. First, install the fastquant package. Then, type the following: Run the program, and on the top left you will find…
Stem and Leaf Plot
A Stem and Leaf Plot is a special table where each data value is split into a “stem” (the first digit or digits) and a “leaf” (usually the last digit). For example: For every first digit of a number, it is in the “Stem” part. The other digit is in the “Leaf”…
Parabola
In mathematics, a parabola is a curve which is mirror-symmetrical and is close to a U-shape. It fits several different mathematical descriptions, which can all be proved to define exactly the same curves.
The Rule of 72
The Rule of 72 is a handy tool used in finance to estimate the number of years it would take to double a sum of money through interest payments, given a particular interest rate. The rule can also estimate the yearly interest rate required to double a sum of money in a specified number…
Shoot low, not high!
When shooting in a soccer match, remember: shoot low! A study found that the percentage of the goals that are scored high are as followed: Top Left: 8 percent Top Center: 4 percent Top Right: 5 percent Yikes. The possibility isn’t high. Middle Left: 7 percent Middle Center: 8 percent Middle Right: 6 percent Although the…
