Home     Wordpress     Codex

Archive for September, 2016

Prime Number Checker Demo

September 28th, 2016 by Math Tricks | No Comments | Filed in Demos




Please check out our gofundme page!

I recently made a Facebook post on the Scientific American article New Take on an Ancient Method Improves Way to Find Prime Numbers.  The article focused on a mathematicians work in improving the Sieve of Eratosthenes to determine if a number is prime.  If you are unfamiliar with this ancient algorithm, then this video will be instructive:


Anyway, this got me into thinking of developing a prime number checking program – but in the opposite direction: using the most basic algorithm to check if a sequence of numbers is prime.

Sounds crazy, right?  Well, just hear me out.  What I want to do is to develop a cool demonstration that shows each number being tested (the speed of program execution will be a variable, btw), and the result of the testing – whether the number is prime or composite.

*** More on this later!! ***



Use the Factorial Function to Calculate Pi!

September 15th, 2016 by Math Tricks | No Comments | Filed in Math Tricks


Check out this awesome trick!

Take your calculator – it has to have a factorial function (n!).  Punch in 0.5, and then hit the factorial key (n!).  Then hit the square function key (x2).  Then multiply the result by 4.  Do you recognize the final result?  That’s right – Pi!!

Check out this video for a demonstration and an explanation:



Tags: ,