Searched refs:lowprimes (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_mhlib.py | 232 lowprimes = [5, 7, 11, 13, 17, 19, 23, 29] 233 lowcompos = [x for x in range(5, 31) if not x in lowprimes ] 235 'lowprime': lowprimes, 243 seqeq('lowprime', lowprimes)
|
/external/v8/benchmarks/ |
D | crypto.js | 1238 var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107… variable 1239 var lplim = (1<<26)/lowprimes[lowprimes.length-1]; 1245 if(x.t == 1 && x_array[0] <= lowprimes[lowprimes.length-1]) { 1246 for(i = 0; i < lowprimes.length; ++i) 1247 if(x_array[0] == lowprimes[i]) return true; 1252 while(i < lowprimes.length) { 1253 var m = lowprimes[i], j = i+1; 1254 while(j < lowprimes.length && m < lplim) m *= lowprimes[j++]; 1256 while(i < j) if(m%lowprimes[i++] == 0) return false; 1268 if(t > lowprimes.length) t = lowprimes.length; [all …]
|