1 package civitas.crypto.parameters;
2
3 import org.springframework.stereotype.Controller;
4
5 @Controller
6 public class CalculateNumberOfPrimeTests {
7 int apply(final int pLength) {
8 int k = (int) Math.ceil(Math.log(pLength) / Math.log(2));
9 return (int) Math.pow(2, k + 2d);
10 }
11 }