repo.or.cz
/
beanstalkd.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Report bound port correctly
[beanstalkd.git]
/
primes.c
blob
82f4e127d058dfdbdea2caa0e88aa7575530faf9
1
#include <stdlib.h>
2
3
// prime // downscale treshold / upscale treshold
4
5
size_t
primes
[] = {
6
12289
,
// NA / 3072
7
24593
,
// 1537 / 6148
8
49193
,
// 3074 / 12298
9
98387
,
// 6149 / 24596
10
196799
,
// etc
11
393611
,
12
787243
,
13
1574491
,
14
3148987
,
15
6297979
,
16
12595991
,
17
25191989
,
18
50383981
,
19
100767977
,
20
201535967
,
21
403071937
,
22
806143879
,
23
1612287763
,
24
3224575537UL
,
25
#if _LP64
26
6449151103
,
27
12898302233
,
28
25796604473
,
29
51593208973
,
30
103186417951
,
31
206372835917
,
32
412745671837
,
33
825491343683
,
34
1650982687391
,
35
3301965374803
,
36
6603930749621
,
37
13207861499251
,
38
26415722998507
,
39
52831445997037
,
40
105662891994103
,
41
211325783988211
,
42
422651567976461
,
43
845303135952931
,
44
1690606271905871
,
45
3381212543811743
,
46
6762425087623523
,
47
13524850175247127
,
48
27049700350494287
,
49
54099400700988593
,
50
108198801401977301
,
51
216397602803954641
,
52
432795205607909293
,
53
865590411215818597
,
54
1731180822431637217
,
55
#endif
56
};
57