jukaukor

Alkutekijat_2powers.jl

Jun 2nd, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #Factoroidaa 2^n - 1 alkulukutekijoiksi p
  2. using Primes
  3. function alkutekijat(q1::Int,q2::Int)
  4. for n::Int in q1 : q2
  5. println(n," , ",factor(Vector,big(2)^n-1))
  6. end
  7. end
Advertisement
Add Comment
Please, Sign In to add comment