I successfully emerged and tested app-sci/euler on gentoo-amd64; I suggest adding the "amd64" keyword to its ebuild.
In CVS now, thanks!