The Greek mathematician Euclid may very well have proved, circa 300 BCE, that there are infinitely many prime numbers. But it was the British mathematician Christian Lawson-Perfect who, more recently, devised the computer game Is this prime?
Launched five years ago, the game surpassed three million tries on July 16or, more to the point, it hit run 2,999,999after a Hacker News post generated a surge of about 100,000 attempts.
The aim of the game is to sort as many numbers as possible into prime or not prime in 60 seconds (as Lawson-Perfect originally described it on The Aperiodical, a mathematics blog of which hes a founder and editor).
A prime number is a whole number with precisely two divisors, 1 and itself.
Its very simple, but infuriatingly difficult, says Lawson-Perfect, who works in the e-learning unit in Newcastle Universitys School of Mathematics and Statistics. He created the game in his spare time, but its proved useful on the job: Lawson-Perfect writes e-assessment software (systems that evaluate learning). The system I make is designed to randomly generate a maths question, and take an answer from the student, which it automatically marks and gives feedback on, he says. You could view the primes game as a kind of assessmenthes used it when doing outreach sessions in schools.
He made the game slightly easier with keyboard shortcutsthe y and n keys click the corresponding yes-no buttons on the screenin order to save mouse-moving time.
Give it a whirl:
Prime numbers have practical utility in computingsuch as with error-correcting codes and encryption. But while prime factorization is hard (hence its value in encryption), primality checking is easier, if tricky. The Fields Medalwinning German mathematician Alexander Grothendieck infamously mistook 57 for prime (the Grothendieck prime). When Lawson-Perfect analyzed data from the game, he found that various numbers exhibited a certain Grothendieckyness. The number most often mistaken for a prime was 51, followed by 57, 87, 91, 119, and 133Lawson-Perfects nemesis (he also devised a handy primality-checking service: https://isthisprime.com/2).
The most minimalistic algorithm for checking a numbers primeness is trial divisiondivide the number by every number up to its square root (the product of two numbers greater than the square root would be greater than the number in question).
However, this nave method is not very efficient, and neither are some other techniques devised over the centuriesas the German mathematician Carl Friedrich Gauss observed in 1801, they require intolerable labor even for the most indefatigable calculator.
The algorithm Lawson-Perfect coded up for the game is called the Miller-Rabin primality test (which builds on a very efficient but not ironclad 17th-century method, Fermats little theorem). The Miller-Rabin test works surprisingly well. As far as Lawson-Perfect is concerned, its basically magicI dont really understand how it works, but Im confident I could if I spent the time to look at it more deeply, he says.
Since the test uses randomness, it produces a probabilistic result. Which means that sometimes the test lies. There is a chance of uncovering an imposter, a composite number that is trying to pass as prime, says Carl Pomerance,a mathematician at Dartmouth College and coauthor of the book Prime Numbers: A Computational Perspective. The chances of an imposter slipping through the algorithms clever checking mechanism are maybe one in a trillion, though, so the test is pretty safe.
But as far as clever primality checking algorithms go, the Miller-Rabin test is the tip of the iceberg, says Pomerance. Notably, 19 years ago, three computer scientistsManindra Agrawal, Neeraj Kayal, and Nitin Saxena, all at the Indian Institute of Technology Kanpurannounced the AKS primality test (again building upon Fermats method), which finally provided a test for unequivocally proving that a number is prime, with no randomization and (theoretically, at least) with impressive speed. Alas, fast in theory doesnt always translate to fast in real life, so the AKS test isnt useful for practical purposes.
But practicality isnt always the point. Occasionally Lawson-Perfect receives email from people keen to share their high scores in the game. Recently a player reported 60 primes in 60 seconds, but the record is more likely 127. (Lawson-Perfect doesnt track high scores; he knows there are some cheaters, with computer-aided attempts that produce spikes in the data.)
The 127 score was achieved by Ravi Fernando, a mathematics graduate student at the University of California, Berkeley, who posted the result in July 2020. Its still his personal best and, he reckons, the unofficial world record.
Since last summer, Fernando hasnt played the game much with the default settings, but he has tried with customized settings, selecting for larger numbers and allowing longer time limitshe scored 240 with a five-minute limit. Which took a lot of guesswork, because the numbers got into the high four-digit range and Ive only ever memorized primes up to the low 3,000s, he says. I suppose some would argue even that is excessive.
Fernandos research is in algebraic geometry, which involves primes to some extent. But, he says, my research has more to do with why I stopped playing the gamethan why I started (he started his PhD in 2014). Plus, he figures 127 would be very hard to beat. And, he says, it just feels right to stop at a prime-number record.
Excerpt from:
Is 57 a prime number? Theres a game for that. - MIT Technology Review
- Technology | Define Technology at Dictionary.com [Last Updated On: March 25th, 2016] [Originally Added On: March 25th, 2016]
- Technology | Definition of Technology by Merriam-Webster [Last Updated On: March 25th, 2016] [Originally Added On: March 25th, 2016]
- Technology | Define Technology at Dictionary.com [Last Updated On: March 26th, 2016] [Originally Added On: March 26th, 2016]
- Technology | Definition of Technology by Merriam-Webster [Last Updated On: March 26th, 2016] [Originally Added On: March 26th, 2016]
- Technology Synonyms, Technology Antonyms | Thesaurus.com [Last Updated On: March 27th, 2016] [Originally Added On: March 27th, 2016]
- Technology News | Reuters.com [Last Updated On: March 27th, 2016] [Originally Added On: March 27th, 2016]
- Information technology - Wikipedia, the free encyclopedia [Last Updated On: March 27th, 2016] [Originally Added On: March 27th, 2016]
- Technology - Wikipedia, the free encyclopedia [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Technology Org - Science and technology news [Last Updated On: July 5th, 2016] [Originally Added On: July 5th, 2016]
- Technology - The Atlantic [Last Updated On: August 27th, 2016] [Originally Added On: August 27th, 2016]
- NOAA Ocean Explorer: Technology [Last Updated On: August 27th, 2016] [Originally Added On: August 27th, 2016]
- History of technology - Wikipedia, the free encyclopedia [Last Updated On: August 27th, 2016] [Originally Added On: August 27th, 2016]
- Technology - Blue Sky Innovation - Chicago Tribune [Last Updated On: August 27th, 2016] [Originally Added On: August 27th, 2016]
- Technology - Northern Illinois University [Last Updated On: August 27th, 2016] [Originally Added On: August 27th, 2016]
- Technology Jobs - Monster.com [Last Updated On: August 27th, 2016] [Originally Added On: August 27th, 2016]
- Urban Dictionary: technology [Last Updated On: January 5th, 2017] [Originally Added On: January 5th, 2017]
- IHS Technology The Source for Critical Information and ... [Last Updated On: January 5th, 2017] [Originally Added On: January 5th, 2017]
- Technology | NFL Football Operations [Last Updated On: January 5th, 2017] [Originally Added On: January 5th, 2017]
- Legaltech News - Law Technology News [Last Updated On: January 5th, 2017] [Originally Added On: January 5th, 2017]
- Reddit: Technology [Last Updated On: January 14th, 2017] [Originally Added On: January 14th, 2017]
- National Education Technology Plan - Office of Educational ... [Last Updated On: January 22nd, 2017] [Originally Added On: January 22nd, 2017]
- Technology: Industries: PwC [Last Updated On: January 22nd, 2017] [Originally Added On: January 22nd, 2017]
- Israeli technology let Super Bowl fans see plays at face mask level - Jerusalem Post Israel News [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Toyota, Suzuki to work together in green, safety technology - The Japan Times [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Aston Martin's architect on how to make technology beautiful - The Verge [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- How the New Fox Show APB Approaches Police Technology - Slate Magazine [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Prosthetic arm technology detects spinal nerve signals - Science Daily [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- In This Year's Super Bowl Of Technology, Intel Led The Way With A Sky Full Of Drones - Forbes [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Learning From Last Year: Technology Funding Outlooks For 2017 - Forbes [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Technology - The New York Times [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Texas transportation leaders scramble to keep up with car technology - Fort Worth Star Telegram [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- What the Tech: Neuro-Bio Monitor Technology - KFDX [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- How Powerful AI Technology Can Lead to Unforeseen Disasters - Fortune [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Microsoft's AI group debuts customizable speech-to-text technology, rapidly expanding 'cognitive services' for ... - GeekWire [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- How 3-D technology helped surgeons separate conjoined twins - CNN [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- These Four Black Women Inventors Reimagined the Technology of the Home - Smithsonian [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Broadcaster dangles new technology for Winter Olympics - Reuters [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- A flare for self-destruction: How technology is the means, not the cause, of our demise - National Post [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- How 3D and Self-Design Will Change Technology - Huffington Post [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Republicans Aim to Kill Election Technology Standards Agency - Gizmodo [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Sean Spicer: Coal will be one of the cleanest uses of technology that we have - The Independent [Last Updated On: February 9th, 2017] [Originally Added On: February 9th, 2017]
- Is technology getting in the way of togetherness? - Las Vegas Weekly (blog) [Last Updated On: February 9th, 2017] [Originally Added On: February 9th, 2017]
- Panera surges to record as Wall Street eyes payoff from technology - Reuters [Last Updated On: February 9th, 2017] [Originally Added On: February 9th, 2017]
- Coming technology will likely destroy millions of jobs. Is Trump ready? - Washington Post [Last Updated On: February 9th, 2017] [Originally Added On: February 9th, 2017]
- How Technology Transforms Dreamers Into Economic Powerhouses - Forbes [Last Updated On: February 9th, 2017] [Originally Added On: February 9th, 2017]
- Technology Trends That Will Shape 2017 and Boost Your Company's UX - Entrepreneur [Last Updated On: February 9th, 2017] [Originally Added On: February 9th, 2017]
- United Airlines Experiences Another Technology Glitch - Wall Street Journal [Last Updated On: February 9th, 2017] [Originally Added On: February 9th, 2017]
- A growing concern: Technology and transportation - Florida Today [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Aberdeen Oil and Gas Technology centre due to open - BBC News [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Opinion: Ethics should be front and center with technology but isn't always - The Mercury News [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Yes, there's a job creation argument for automation and technology - The Hill (blog) [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Nasdaq plans venture arm to invest in financial technology: sources ... - Reuters [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Volvo melds technology and luxury in the XC90 T8 hybrid - Engadget [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Our seas have become a plastic graveyard - but can technology turn the tide? - Telegraph.co.uk [Last Updated On: February 12th, 2017] [Originally Added On: February 12th, 2017]
- Technology identifying fastest checkout lanes comes to metro - KCCI Des Moines [Last Updated On: February 12th, 2017] [Originally Added On: February 12th, 2017]
- This Technology Could Be a Game-Changer for the Marijuana Industry - Fox Business [Last Updated On: February 12th, 2017] [Originally Added On: February 12th, 2017]
- Small cell technology is large endeavor for state - Crain's Cleveland Business [Last Updated On: February 12th, 2017] [Originally Added On: February 12th, 2017]
- Grapevine: Technology at any age - Jerusalem Post Israel News [Last Updated On: February 12th, 2017] [Originally Added On: February 12th, 2017]
- Feeling Tied to Technology? Neuroscientist Offers Tips to Focus and Recharge Your Brain - whotv.com [Last Updated On: February 12th, 2017] [Originally Added On: February 12th, 2017]
- The technology fixing Britain's parking problem - The Independent [Last Updated On: February 12th, 2017] [Originally Added On: February 12th, 2017]
- DHS Developing Technology to Identify Terrorist Travelers - Breitbart News [Last Updated On: February 13th, 2017] [Originally Added On: February 13th, 2017]
- New technology has display designers thinking outside the rectangle - The Japan Times [Last Updated On: February 13th, 2017] [Originally Added On: February 13th, 2017]
- Graph Technology A Data Standby By For Every Fortune 500 Company - Computer Business Review [Last Updated On: February 13th, 2017] [Originally Added On: February 13th, 2017]
- Tesla obtains patent for charging metal-air battery technology that could enable longer range - Electrek [Last Updated On: February 13th, 2017] [Originally Added On: February 13th, 2017]
- Tim Cook: Augmented Reality is as big of a technology as the smartphone - BGR [Last Updated On: February 13th, 2017] [Originally Added On: February 13th, 2017]
- Franklin County's 911 centers sharing technology to receive texts - Columbus Dispatch [Last Updated On: February 13th, 2017] [Originally Added On: February 13th, 2017]
- A New Angel Investing Platform Connects Deep Technology And Science Startups With Capital - Forbes [Last Updated On: February 13th, 2017] [Originally Added On: February 13th, 2017]
- How technology is encouraging society to be stupid - The Next Web [Last Updated On: February 13th, 2017] [Originally Added On: February 13th, 2017]
- Technology puts 'touch' into long-distance relationships - Phys.Org [Last Updated On: February 13th, 2017] [Originally Added On: February 13th, 2017]
- VW plans to use Mobileye sensing and localization technology - Automotive News (subscription) (blog) [Last Updated On: February 14th, 2017] [Originally Added On: February 14th, 2017]
- How dangerous is technology? - OUPblog (blog) [Last Updated On: February 14th, 2017] [Originally Added On: February 14th, 2017]
- Valentine's day: what's your secret technology crush? - Naked Security [Last Updated On: February 14th, 2017] [Originally Added On: February 14th, 2017]
- Johnston educators among presenters at technology conference - News & Observer [Last Updated On: February 14th, 2017] [Originally Added On: February 14th, 2017]
- Is Magic Leap Lying About Its Acid Trip Technology? - Vanity Fair [Last Updated On: February 14th, 2017] [Originally Added On: February 14th, 2017]
- A look at North Korea's missile launches and technology - ABC News [Last Updated On: February 14th, 2017] [Originally Added On: February 14th, 2017]
- Parents and technology How much is too much? - WGBA-TV [Last Updated On: February 14th, 2017] [Originally Added On: February 14th, 2017]
- Apple's Eddy Cue says technology companies have a responsibility to combat fake news - Recode [Last Updated On: February 14th, 2017] [Originally Added On: February 14th, 2017]
- Statistical agencies looking to C-suite, new digital tools to address biggest challenges - FederalNewsRadio.com [Last Updated On: February 15th, 2017] [Originally Added On: February 15th, 2017]
- Even Indian technology entrepreneurs think they are living in a bubble - Quartz [Last Updated On: February 15th, 2017] [Originally Added On: February 15th, 2017]
- Is Hyperloop transportation technology coming to India? - YourStory.com [Last Updated On: February 15th, 2017] [Originally Added On: February 15th, 2017]