My trailing zeros shell script is getting time limit exceeded , any help on this?

#!/bin/bash
read no_of_var
for ((i=0; i<$no_of_var; i++))
do
f1[i]=0
read f
while [ “$f” -ge “5” ]
do

       f=$((f/5))
       f1[i]=$((f1[i]+f))
   done 
done
for ((i=0; i<$no_of_var; i++)) 
do
echo ${f1[i]}
done