!! used as default html header if there is none in the selected theme. Prog divisibility

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


This page is not in its usual appearance because WIMS is unable to recognize your web browser.
In order to access WIMS services, you need a browser supporting forms. In order to test the browser you are using, please type the word wims here: and press ``Enter''.

Please take note that WIMS pages are interactively generated; they are not ordinary HTML files. They must be used interactively ONLINE. It is useless for you to gather them through a robot program.