Factorization algorithm based on the periodicity measurement of a "continuous truncated exponential sum"