Luigi Morelli
Published © GPL3+

CUDA with Jetson Nano – Parallel Pollard Rho test

Math is hard. When your teacher does not like to teach it.

IntermediateProtip1 hour698
CUDA with Jetson Nano – Parallel Pollard Rho test

Things used in this project

Hardware components

NVIDIA Jetson Nano Developer Kit
NVIDIA Jetson Nano Developer Kit
×1

Story

Read more

Code

Code snippet #1

Plain text
x = 2; y = 2; d = 1
    while d == 1:
        x = g(x)
        y = g(g(y))
        d = gcd(|x - y|, n)
    if d == n: 
        return failure
    else:
        return d

Code snippet #2

Plain text
n = 8051
x = 2
y = 2
g(x) = (x^2 + 1)
g(g(x)) = g(x^2 + 1)

Github

https://github.com/LuigiMorelli/MoreWare

The CUDA factorization program

Credits

Luigi Morelli
13 projects • 6 followers
I work to contribute to the change of the key sectors of computer science and to offer reasoned syntheses and consultancy to ICT companies.

Comments