Generating Large Random Primes with the Miller-Rabin Primality Test

  Рет қаралды 2,531

JacksonInfoSec

JacksonInfoSec

Күн бұрын

Пікірлер: 10
@andrecarvalho8679
@andrecarvalho8679 2 жыл бұрын
Thank you this video was extremly helpfull to understand some key concepts!
@JacksonInfoSec
@JacksonInfoSec 2 жыл бұрын
Glad it was helpful!
@johnteran8889
@johnteran8889 2 жыл бұрын
superb video. thanks so much!
@JacksonInfoSec
@JacksonInfoSec 2 жыл бұрын
Thanks man, appreciate the support.
@lennemo99
@lennemo99 4 жыл бұрын
incredibly helpful video thank you
@JacksonInfoSec
@JacksonInfoSec 4 жыл бұрын
Thank you for your comment. I am glad it helped.
@alagaika8515
@alagaika8515 2 жыл бұрын
Got some goosebumps when seeing an indentation of two spaces 😜
@JacksonInfoSec
@JacksonInfoSec 2 жыл бұрын
Ha-ha, is that a Python faux pas?
@zanti4132
@zanti4132 Жыл бұрын
Regarding the number of tests you are likely to have to make before you find a probable prime, that actually follows from the Prime Number Theorem, a very important theorem in Number Theory. From this theorem, if n is a randomly chosen positive integer, then the probability n is prime is 1/ln(n), where ln(n) is the natural logarithm of n. From this it follows that the average gap between prime numbers is ln(n). As you are testing only odd integers, the number of tests needed will be on average half that, i.e. ln(n)/2. To give a concrete example, if n is created as in your video using 100 randomly assigned binary digits, then you'll get a number between 2⁹⁹ and 2¹⁰⁰, which is roughly 10³⁰. The average gap should be about 30 × ln(10). That is about 69, so it should take 34 or 35 tests on average to get a hit. Even with 1000 binary digits - that would be a number with over 300 digits when written in decimal - the number of tests on average should be around 350.
@allurbase
@allurbase 2 жыл бұрын
Thank you, any fast way of producing false positives for Miller-Rabin?
In 2003 We Discovered a New Way to Generate Primes
22:17
Eric Rowland
Рет қаралды 416 М.
How to Find the Biggest Primes
19:20
jHan
Рет қаралды 10 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
How to Implement the Miller-Rabin Primality Test
15:33
William Y. Feng
Рет қаралды 12 М.
Der Miller-Rabin-Test in Python
11:58
Weitz / HAW Hamburg
Рет қаралды 9 М.
How To Tell If A Number Is Prime: The Miller-Rabin Primality Test
8:48
The Magma Block Cipher
19:36
JacksonInfoSec
Рет қаралды 1 М.
The Fast Modular Exponentiation Algorithm in Python
14:56
JacksonInfoSec
Рет қаралды 3,4 М.
Fool-Proof Test for Primes - Numberphile
3:43
Numberphile
Рет қаралды 902 М.
Miller-Rabin Primality Test
9:23
Theoretically
Рет қаралды 127 М.
How to Find VERY BIG Prime Numbers?
26:00
Digital Genius
Рет қаралды 199 М.
Anwendung - Primzahltests (Miller-Rabin-Test)
14:01
Weitz / HAW Hamburg
Рет қаралды 1,8 М.
Applied Cryptography: RSA - Finding Large Primes - Part 1
17:57
Leandro Junes
Рет қаралды 7 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН