shor's algorythm without quantum part (replace with fft and buteforcing period)