Prime Factorisation of a number

In the function: vectorfactorize why the 2nd argument is passed by address? It’s a vector and hence dynamic , then why pass by address??