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.
No broken. 563 is a Wilson prime. This means you returned false for this number.
You're right, I didn't check it. It's incredible nobody saw that before. I raise an issue about that.
The starter code for PHP has flawed syntax. The arguments are written without the
$
sign denoting a variable.So if you change
to
and do the same for the decode function, it should allow you to proceed. No, I don't know why the starter code is wrong, but it should probably be fixed.
It's hard to know without seeing your code. Seen the error comes apparently from the first line, I would suggest you to 1) Save your code locally (or you will lose it) 2) click on
reset
at the bottom of the page (this will reinitialize your code with the original solution set up) and 3) try to reimplement your code, being very careful with not alterating the function signature.With the same issue before but solved
droppi ;)
The problem is with how you return
true
andfalse
, remove the quotes and try again.That is a problem with your code (just tried the code in SQL and worked fine), try posting it as it says here: https://docs.codewars.com/training/troubleshooting#post-discourse