Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ? for(q=1,1000,for(n=1,1000,m=q-n^2;if(m>0,s=(7^q+1)/(7^m+1);if(denominator(s)==
  2. 1,if(ispseudoprime(s)==1,print([m,q,n]))))))
  3. [1, 17, 4]
  4. [8, 24, 4]
  5. [2, 38, 6]
  6. [4, 148, 12]
  7.  
  8. ? z=prod(j=1,3*10^4,prime(j));for(q=1,10^4,for(n=1,10^4,m=q-n^2;if(m>0,s=(7^q+1)
  9. /(7^m+1);if(denominator(s)==1,if(gcd(s,z)==1,if(ispseudoprime(s)==1,print([m,q,n
  10. ])))))))
  11. [1, 17, 4]
  12. [8, 24, 4]
  13. [2, 38, 6]
  14. [4, 148, 12]
  15. ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement