Our friend Andrew Eckford has spent some time over the holiday improving his Twitter bot Primes as a Service. He launched it in late Spring of 2016, but has added some new functionality over the holidays. It can be relatively handy if you need a quick answer during a class, taking an exam(?!), to settle a bet at a mathematics tea, while livetweeting a conference, or are hacking into your favorite cryptosystems.
Tweet a positive 9-digit (or smaller) integer at @PrimesAsAService. It will reply via Twitter to tell you if the number prime or not.
Some of the usable commands one can tweet to the bot for answers follow. (Hint: Click on the buttons with the tweet text to auto-generate the relevant Tweet.)
- To factor a number into prime factors, tweet:
@primesasservice # factor
and replace the # with your desired number
- To get the greatest common factor of two numbers, tweet:
@primesasservice #1 #2 gcf
and replace #1 and #2 with your desired numbers
- To get a random prime number, tweet:
- To find out if two numbers are coprime, tweet:
@primesasservice #1 #2 coprime
replace #1 and #2 with your desired numbers
If you ask about a prime number with a twin prime, it should provide the twin.
Pro tip: You should be able to drag and drop any of the buttons above to your bookmark bar for easy access/use in the future.
Happy prime tweeting!
- Syndicated to: