Welcome to MindCipher, a social repository of the world's greatest brain teasers, logic puzzles and mental challenges.

MoralMachine

Comments 1

No if() Only abs()

Good point. Nod. But we have to exclude 0.

Whatever, the question should just emphasize on "pure arithmetic" or ask for an algebra expression.

context

Submitted Puzzles 2

6 4 Sum of Two Prime Numbers
If p, q > 2 are consecutive in set of primes. Since p,q can only be odd number, (p+q) is an even number. Can (p+q)/2 be prime? from http://republicofmath.com/
Doable
4.0
17 14 No if() Only abs()
Given two variable a and b, construct a function f(a,b) which return the maximum one in {a,b}. You can only use +- · / and abs() (to take the absolute value). NO if() is allowed in your construction. ...
Doable
5.5