最小跳跃次输出每次跳跃步数_跳跃冠军

最小跳跃次输出每次跳跃步数

In cryptography, we often end up analysing things with prime numbers. In fact one of our most popular operators is (mod p) and which is the remainder from a division by a prime number p. The prime numbers I use for testing are 97, 997, 2¹⁹-1, and 2²⁵⁵-19 (used in Curve 25519). There are also other ones such as 2⁴⁴⁸ − 2²²⁴ − 1, and which is the Goldilock prime (and used in Curve 448). Overall 2²⁵⁵-19 has 256 bits, and 2⁴⁴⁸ − 2²²⁴ − 1 has 448 bits.

在密码学中,我们经常最终用质数来分析事物。 实际上,我们最受欢迎的运算符之一是(mod p ),它是除以质数p的余数。 我用于测试的质数是97、997、2 1 -1和2 2 -19(在曲线25519中使用)。 还有其他一些,例如2⁴⁴⁸-2²²⁴-1-,它是Goldilock质数(在曲线448中使用)。 总体上2²⁵⁵-19具有256位,而2⁴⁴⁸−2²²⁴− 1具有448位。

Overall prime numbers have been a great fasination for research, and it was Odlyzko [here] who observed the jumping champion:

整体质数一直是研究的一大魅力,是奥德兹科[ 这里 ]观察到了跳跃冠军:

Image for post

For this we have the most popular difference between a sequence of prime numbers for all the prime numbers up to x. For example, for a prime number of 13, the prime numbers are 2, 3, 5, 7, 11, and 13 and the differences will be +1, +2, +2, +4 and +2. The most popular value is thus 2 [here]:

为此,对于x之前的所有素数,我们在素数序列之间具有最流行的区别。 例如,对于13的质数,质数是2、3、5、7、11和13,其差将为+ 1,+ 2,+ 2,+ 4和+2。 因此,最受欢迎的值为2 [ here ]:

Value:  13Primes:
[2, 3, 5, 7, 11, 13]Occurances:
[0 1 3 0 1 0 0 0 0 0]Jumping champions:
[2]

If we select 101, we can define that the jumping champions are 2 and 4 (as there are eight differences of 2 and 4) [here]:

如果选择101,则可以定义跳跃冠军为2和4(因为2和4有八个差异)[ 此处 ]:

Value:  101Primes:
[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101]Occurances:
[0 1 8 0 8 0 7 0 1 0]Jumping champions:
[2 4]

A value of 467 gives champions of 2, 4 and 6 (as there are 24 occurances of these jumps) [here]:

值467会使冠军分别为2、4和6(因为这些跳跃有24次出现)[ 此处 ]:

Value:  467Primes:
[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467]Occurances:
[ 0 1 24 0 24 0 24 0 5 0]Jumping champions:
[2 4 6]

The following outlines some sample code [here]:

下面概述了一些示例代码[ here ]:

from sympy import sieve
import numpy
import sys
import math
x=421
if (len(sys.argv)>1):
x=int(sys.argv[1])if (x>1000): sys.Exit(1)primes = list(sieve.primerange(1, x+1))difference = numpy.array([0] * math.ceil(math.sqrt(x)))
for i in range(len(primes)-1):
diff = primes[i+1]-primes[i]
difference[diff] = difference[diff]+1print ("Value: ",x)
print ("\nPrimes:")
print (primes)
print ("\nOccurances:")
print (difference[:10])
res = numpy.where(difference == numpy.amax(difference))print ("\nJumping champions:")
for x in res:
print (x)

Odlyzko et al defined that 6 (2×3) is the sole jumping champion from 947 up to 1.7427×10³⁵, after which the sole jumping champion is 30 (2×3×5). Then around 10⁴²⁵, 210 (2×3×5×7) becomes the jumping champion. The distribution for values up to 10¹² is:

Odlyzko等人将6(2×3)定义为从947到1.7427×10³⁵的唯一跳跃冠军,此后,唯一的跳跃冠军是30(2×3×5)。 然后在10平方厘米附近,210(2×3×5×7)成为跳跃冠军。 值最大为10²²的分布为:

Image for post

翻译自: https://medium.com/asecuritysite-when-bob-met-alice/jumping-champions-524cd6429b7f

最小跳跃次输出每次跳跃步数

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值