UlyssesZh / UlyssesZh.github.io

Ulysses Zhan's blog!
https://UlyssesZh.github.io
MIT License
3 stars 3 forks source link

I made this, for the number of days in a week is prime | Ulysses’ trip #66

Open UlyssesZh opened 1 year ago

UlyssesZh commented 1 year ago

https://ulysseszh.github.io/programming/2022/12/05/week-prime.html

The number of days in a week is prime, so we cannot utilize weekly periods to help us remember periodical events unless the period is a multiple of 7. However, there may be something that we need to get reminded of which happens once per two days or three days. For example, I wash my hair once per two days and wash my clothes once per eight days. To solve the problem, I wrote a Ruby program to help remind me of those routines.