AC Mains detection circuit
Design Review


100k is redundant with 1M both in series
1M part must be rated for 3kV impulse and better with equivalent Z(f) cap
LEDS are too low impedance for // operation and must be in series
power transfer is thus inefficient and won’t work as expected due to Impedance divider 
1 uF is far too small to sustain power to LED ESR=1/Pd per device yet too big as voltage divider


eg 3.3V @25mA =85mW , ESR= 12 ohms or less , thus &lt;&lt;12us decay for 1 LED only



busted. Topology NG