Question: You are given three parameters: start(int), end(int) and list(of int);

Make a function that returns the amount of times all the numbers between **start** and **end** are multiples of the elements in the **list**.
example:

```
start = 15; end = 18; list = [2, 4, 3];
15 => 1 (is multiple of 3)
16 => 2 (is multiple of 2 and 4)
17 => 0
18 => 2 (is multiple of 2 and 3)
result = 5

```

The function should accept two positive integer numbers and an array of integers as parameters, returning the total integer number. Assume that start is less <= end.

examples: 

```
Multiple(1, 10, [1, 2]); => 15
Multiple(1, 800, [7, 8]); => 214
Multiple(301, 5000,[13, 5]); => 1301

```

The shortest solution is the victor!!! May he odds be ever in your favor...

Answer: 
[MATL](https://github.com/lmendo/MATL), 5 bytes
===============================================

```
:i\~z

```

Inputs are a cell array containing the `start` and `end` values, and then a column vector defining `list`.

[Try it online!](https://tio.run/##y00syfn/3yozpq7q//9qQ1MFQ4tarmgjawUTawXjWAA "MATL – Try It Online") Or [verify all test cases](https://tio.run/##y00syfn/3yozpq7q//9qQ1MdBUOLWq5oI2sFE2sF41gA).

### Explanation

```
:    % Range, with implicit input: cell array {start, end}. This gives the range
     % from start to end
i    % Input: list of numbers in the form of a column vector
\    % Modulo, with boradcast. This gives a matrix with each number in the range
     % modulo each number in the list
~    % Logical negation 
z    % Number of nonzero entries. Implicit display

```
SimpleTemplate, 86 bytes
========================

Yeah, kinda long, but it works!  

Receives 2 numbers (in any order) and an array/string of 1-digit numbers (e.g.: `"243"`), passed to the `render()` method of the compiler.

```
{@fori fromargv.0 toargv.1}{@eachargv.2}{@ifi is multiple_}{@incR}{@/}{@/}{@/}{@echoR}

```

Displays the result or nothing, if none is

---

**Ungolfed**

```
{@set count 0}
{@for i from argv.0 to argv.1}
    {@each argv.2 as number}
        {@if i is multiple of number}
            {@inc by 1 count}
        {@/}
    {@/}
{@/}
{@echo count}

```

Should be mostly straightforward.

---

You can try it on <http://sandbox.onlinephpfunctions.com/code/b26cd7f75e0c4676038573c4274180891a890895>

Change line 986 to test the golfed and ungolfed versions, and line 988 to get the input.