I don't understand what the initial 470n capacitor connected to the live wire and the final 100ohm resistor connected to the neutral wire does.
It's a cheapo capacitive dropper power supply.
The impedance of the cap limits the current without wasting too much power into heat. R1 discharges C1 to protect you from shock when you unplug the bulb. R2 limits inrush current.