
### Canonicalized Input Description:

An integer Q (1 ≤ Q ≤ 10^5), representing some quantity or size.
A list of integers N of size Q, where each integer is between 2 and 10^5.

### Example Input:

```
3
43
9
24
```

### Function Signature:
Write a function f(Q, N) that takes in the input.
```python
def f(Q: int, N: List[int]):
    '''
    Q: an integer
    N: a list of integers
    '''
```