Wednesday, December 16, 2015

Interesting prime

Came across this article about interesting numbers here.

Oh, learned something new today, the Belphegor's prime number.

1000000000000066600000000000001

Ooh 666 in middle! 13 0's to the left, 13 0's to the right, and bookended by 1's.

I am not going to bother testing rather this is real prime or not (it sure should be). So high school students write little program that test if an integer is a prime? Well this is an integer that too big to fit in your little int types. See, computer integer are not really the mathematics integer.

No comments: