prettier factorial