added primefact snippet, oblig 2, discrete maths

Signed-off-by: Alexander Skjolden <alex@plastboks.net>