Light the lights again

Each light in this interactivity turns on according to a rule. What happens when you enter different numbers? Can you work out the rule for each light?

Problem

This problem is similar to Light the Lights, but slightly more tricky. You may like to try that one first.

Here is a machine with four coloured lights. Each light responds to a rule.

When you type in a number, lights go on if their rule is satisfied.

If the number satisfies more than one rule, then more than one colour will light up.

Type in some numbers and see which lights you can switch on. 

 

What are the four rules? How do you know?

Is it possible to light up all four lights at the same time? Why or why not?