# The winner of the CodeFu 2011 Round 2 is Predrag Gruevski

Congratulations to obi1kenobi who solved 4 problems in 1 hour 3 minutes.

## The winner of the second iPod is Biljana Nikolovska

The calculation for the random iPod touch is ((11 * 2 + 22 * 5 + 36 * 8 + 45 * 11 + 48 * 13) mod 92) + 2 = 69
69 = MatMar = Biljana Nikolovska

In order to be transparent with the choice, the following algorithm will be used:

• 5 numbers will be taken from the Euro Millions Lottery 22th of April draw
• You can see the numbers here
• Those 5 numbers will be sorted
• Then multiplied with the following factors: 2 for the smallest number, 5, 8, 11 and 13 for the biggest number, and then a total sum calculated
• Note: The factors: 2, 5, 8, 11, 13 are chosen so that there is a smallest deviation among all possibilities, i.e. all positions have the same (or very close) possibility for being a winner
• The total sum will be cut modulo 92 and then added 2 (to get a range of 2-93, these are the competitors eligible for the prize)
• Example
Lottery numbers from the last week were 4, 8, 21, 35, 45
4 * 2 + 8 * 5 + 21 * 8 + 35 * 11 + 45 * 13 = 1186
1186 % 92 + 2 = 84 This means the person with number 84 (this is still an example) would receive the random iPod

The position numbers are:

2 mg
3 birbbit
5 stef
6 yoyoyoman
7 igorkulev
8 lazzrov
9 delixd
10 sweko
11 boro
12 dsmilkov
13 digitalis
14 darkomk
15 gorgiRankovski
16 p.bojan
17 Goran
18 bPop
19 vasja
21 filipjovi
22 nemaime
23 stpanov
24 Imaginary
25 kujta1
26 azder
27 Ilija139
28 Bujo0
29 boban_r
30 teddy
31 bilievsk
32 domenica
33 gajduk
34 igorG
35 mangelovski
36 angel
37 jovank
38 acker
39 bojanv91
40 Flerp
41 kamikaza
42 time_bandit
43 moondowner
44 filipbitola
45 Steff
46 mafy_b
47 nikolay
48 aleksmk
49 miko90
50 darko
51 dare2010
52 hardCoder
53 EthanHunt
54 bobby
55 Nikola
56 cava
57 poisonIvy
58 vikifor
59 sumar
60 CursedPerVerse
61 emimarkovska
62 qwertyThis
63 vikjo
64 Krcko
65 darkoatanasovski
66 Kex
67 nikol4e
68 Denis
69 MatMar
70 GROBARKO
71 efi
72 bedjovski
73 Damjanovski
74 vigoss
75 ProbePLayer
76 milosev
77 pojma_nemam
78 aleks
79 GT
80 decobt
81 AleksandarT
82 Kriko
83 LosT_in_SpaCe
84 alpetrovski
85 nn2044
86 igord
87 st.martin
88 phicho
89 bluePlayer34
90 karakondjul
91 thesource
92 Gogo_20