0%

Problem 810


Problem 810


XOR-Primes

We use xy for the bitwise XOR of x and y.

Define the XOR-product of x and y, denoted by xy, similar to a long multiplication in base 2, except that the intermediate results are XORed instead of the usual integer addition.

For example, 73=9, or in base 2, 1112112=10012:

11111121111112111111211111291110012

An XOR-prime is an integer n greater than 1 that is not an XOR-product of two integers greater than 1. The above example shows that 9 is not an XOR-prime. Similarly, 5=33 is not an XOR-prime. The first few XOR-primes are 2,3,7,11,13, and the 10th XOR-prime is 41.

Find the 5 000 000th XOR-prime.


异或质数

xyxy按位异或的结果。

我们定义一种新运算,称为xy异或积并记作xy。这种运算类似于对xy的二进制表示做长乘法,但是将其中的相加替换为异或。

例如,73=9,或用二进制表示写作1112112=10012
11111121111112111111211111291110012

若大于1的整数n不是任意两个大于1的整数的异或积,则称之为异或质数。上面的例子说明9不是一个异或质数。类似地,5=33也不是一个异或质数。较小的异或质数包括2,3,7,11,13,,而第10个异或质数是41

求第5 000 000个异或质数。


Gitalking ...