Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
如果一个数可以被分解为不同的因子,那么必定有一个因子是 <= 这个数的平方根,另一个因子是 >= 这个数的平方根。那么只需要从 2 到此数的平方根找出是否能整除该数的因子,如果能找到,就说明该数不是质数。
map has a return value, so using forEach is more appropriate here