810. XOR-Primes

We use for the bitwise XOR of and .

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

For example, , or in base , :

An XOR-prime is an integer greater than that is not an XOR-product of two integers greater than . The above example shows that is not an XOR-prime. Similarly, is not an XOR-prime. The first few XOR-primes are and the 10th XOR-prime is .

Find the th XOR-prime.

810. 异或质数

我们记 按位异或的结果。

我们定义 异或乘积 如下:在列竖式进行二进制乘法时,其他步骤不变,只在最后得出结果时,将算出的每一列中的数字进行异或,而非原来的二进制加法。

例如,。或将此等式表示为二进制为 。其计算过程如下:

定义 异或质数 为大于 且不能写成两个大于 的正整数之异或乘积的整数。故由上即知 不是异或质数。较小的一些异或质数为 ,第 10 个异或质数为

求第 个异或质数。


这个链接 回到源站。

这个链接 回到详细版题目目录。