Prog divisibility --- Introduction ---

This modules gathers interactive programming exercises, variable and configurable, on the subject of integer divisibility. The software can ask you to produce an algorithm to compute divisibility, quotient or rest of integers, according to various formulas. It will then compile your submitted code and test it on randomly generated integers for the validity of the code.

Ceil I

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Ceil I bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Ceil II

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Ceil II bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Ceil III

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Ceil III bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Ceil IV

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Ceil IV bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count of divisibilities I

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Count of divisibilities I bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Test of divisibility I

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Test of divisibility II

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Test of divisibility III

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Test of divisibility IV

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Test of divisibility V

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Test of divisibility VI

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Floor I

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Floor I bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Floor II

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Floor II bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Floor III

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Floor III bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Floor IV

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Floor IV bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Quotient I

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Quotient I bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Quotient II

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Quotient II bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Quotient III

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Quotient IV

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Rest I

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Rest I bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Rest II

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Rest II bis

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Rest III

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:


Rest IV

a function , which takes , and , and returns .


ERROR. Your code didn't give anything. Syntax error?
Your code didn't pass the test on the case :

It returns , while the right result should be .

Please correct (try number , limited to ).


ATTENTION! The length of your code is limited to characters not including spaces. And the score depends on the length. The shorter is the code, the higher is the score, up to a complete score if the length does not exceed .

The following names ARE NOT allowed in the code:

The most recent version


Cette page n'est pas dans son apparence habituelle parce que WIMS n'a pas pu reconnaître votre navigateur web.
Afin de tester le navigateur que vous utilisez, veuillez taper le mot wims ici : puis appuyez sur ``Entrer''.

Veuillez noter que les pages WIMS sont générées interactivement; elles ne sont pas des fichiers HTML ordinaires. Elles doivent être utilisées interactivement EN LIGNE. Il est inutile pour vous de les ramasser par un programme robot.