20221220が素数になる基数を探してがんばろう←
おきらくごくらくにやったらアルファベットが足りんかった
> 3.upto(100) do |b| if '20221220'.to_i(b).prime? then puts b end endin `to_i': invalid radix 37 (ArgumentError)
考えてみたら最小桁がゼロならかならず基数で割り切れるのじゃったw
@zundan いや、13進数とかもありますよ!
@zundan にしても、それで割れて1より大きくなるからだめか
@tadd 整数むずかしー!
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.