The original naive implementation used the modulus (%) operator, which is wildly inefficient, to check every number from 2 up to the target number itself to determine if it is a factor.
In order to study the effect of elastic modulus e, to the safety factor and slip plane of slope, a numerical model is founded in plane strain mode for homogeneous soil slope.