factor 0.4.0

Find the factors for any integer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub fn factor(input :i64) -> Vec<i64>{

    let count = 2;

    let mut vector = vec![];

    for count in count..input {
        if input % count == 0 {
            vector.push(count);
        }
    }

    return vector;

}