https://github.com/nonrational/istodayprime
is today a prime day?
https://github.com/nonrational/istodayprime
javascript nodejs prime prime-day react
Last synced: about 1 month ago
JSON representation
is today a prime day?
- Host: GitHub
- URL: https://github.com/nonrational/istodayprime
- Owner: nonrational
- Created: 2013-11-30T23:27:43.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T07:23:02.000Z (over 3 years ago)
- Last Synced: 2025-02-24T10:56:14.228Z (over 1 year ago)
- Topics: javascript, nodejs, prime, prime-day, react
- Language: JavaScript
- Homepage: https://nonration.al/istodayprime
- Size: 7.57 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# is today prime?
Inspired by [https://www.johndcook.com/blog/2013/11/29/todays-a-prime-day/](https://www.johndcook.com/blog/2013/11/29/todays-a-prime-day/)
> Today’s a prime day. Whether you write the date in American (MMDDYY), European (DDMMYY), or ISO (YYYYMMDD) format, you get a prime. That is, 112913 and 291113 and 20131129 are all prime numbers.
>
> We’ll call a date an American prime date if MMDDYY is prime, a European prime date if DDMMYY is prime, and an ISO prime date if YYYYMMDD is prime. (Single-digit days and months are padded with a zero.) If a date is prime by all three criteria, we’ll call it an international prime date. Today is an international prime date, and there won’t be another one until August 11, 2019.
>
> If a date is an American prime date and a European prime date, we’ll call it a transatlantic prime date. After today, the next transatlantic prime dates are December 4 and 13 this year. There will be no transatlantic prime dates in 2014, 2015, and 2016 since these dates correspond to numbers that are divisible by either 2 or 5. The first transatlantic prime date of 2017 will be January 16.
>
> _Posted on 29 November 2013 by John_