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.
It's bad practice, but I love how optimized it is.
excelente me sorprende a veces la capcidad en la que los codigos de php se pueden comprimir a tal punto en que solo ocupan una sola linea de codigo.
This comment is hidden because it contains spoiler information about the solution
English version of docs, sorry =]
https://www.php.net/manual/en/function.gmp-prob-prime.php
lol it break formatting =[
Built-in fast PHP function for this purpose, (no GMP, not pass tests)
PHP Docs: https://www.php.net/manual/ru/function.gmp-prob-prime.php
Example:
This comment is hidden because it contains spoiler information about the solution
Better use return isCorrectLength && hasOnlyNumbers;
Easy to read and avoid multiple return statements