rlwhitcomb / utilities

Some of my personal utility programs
MIT License
2 stars 0 forks source link

Allow "isPrime" to take multiple arguments, and iterate over the flat map of them #654

Closed rlwhitcomb closed 4 months ago

rlwhitcomb commented 4 months ago

The result should be true if all values are prime, and false if not. So, the degenerate case of one value is the same as now, but with arrays, or multiple values it will test them all and return the aggregate result. This will simplify the calculations in Project Euler #35.