http://pullatiikeri.net/p/prime/ambiguity.php