You need to sign in or sign up before continuing.×
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.
Description should be language agnostic. Here is a suggestion for a fix (reworded).
I also made the description language-agnostic using
KaTeX
in my Lua translation but feel free to use the following or another one if you prefer.preview
Task
Write a function that returns the power of
2
in the prime factorization of a positive integer (>= 1
).Examples
copy-paste
# Task
Write a function that returns the power of `2` in the prime factorization of a positive integer (`>= 1`).
# Examples
```
24 should return 3 -> 24 = 23 * 3
17280 should return 7 -> 17280 = 27 * 3**3 * 5
```
Lua translation !
made description language-agnostic + used
KaTeX
Haskell translation
The proper name for 'relatively prime numbers' is 'coprime numbers', so you can change the title if you want ;)
I am trying the Haskell version and don't know what to make out of this.
Falsified (after 3 tests and 1 shrink):
0
[-1]
No info on what the input, expected and actual results are. Please rectify.
need random tests.
Java fork
Java: no random tests.
Sample and fixed test such as
"b4 d6 b6 g6 g3 e4\"
should be added to invalidate solutions that allow 2 pawn moves to be made after 1st attemptThis comment is hidden because it contains spoiler information about the solution
Description should be language-agnostic
Description should be language-agnostic
Description should be language-agnostic
Java translation submitted
Please use new python test framework.
Loading more items...