SparkFactorial could be used for speed test