public static int[] decompileNumberInFactors(int numToDecompile){
        if (isNumberFirst(numToDecompile)){
            return new int[]{numToDecompile};
        }
        List<Integer> list = new ArrayList<Integer>();
        int divisor = 0;
        while (divisor < numToDecompile){
            divisor++;
            if (!isNumberFirst(divisor)){
                continue;
            }
            int rest = numToDecompile % divisor;
            if (rest == 0){
                list.add(divisor);
                numToDecompile = numToDecompile / divisor;
                divisor = 0;
            }
        }
        int[] ints = new int[list.size()];
        for (int j = 0 ; j < list.size() ; j++){
            ints[j] = list.get(j);
        }
        return ints;
    }