mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Blogorrhea > enzocreti

Reply
 
Thread Tools
Old 2019-03-14, 18:35   #23
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

Quote:
Originally Posted by enzocreti View Post
Simply: number formed by the concatenation in base 10 of two consecutive Mersenne numbers.
Examples are 31, 73, 157, 3115, 40952047...
This will get you going:

Code:
for(a=1,100,A=2^a-1;VA=digits(A);for(b=1,100,B=2^b-1;VB=digits(b);VZ=concat(VA,VB);summand=0;pow=1;forstep(z=#VZ,1,-1,summand=summand+VZ[z]*pow;pow=pow*10);if(ispseudoprime(summand),print([summand]))))
paulunderwood is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
GWNUM program paulunderwood Programming 54 2021-02-10 12:46
LLR V3.8.2 using gwnum 26.2 is available! Jean Penné Software 25 2010-11-01 15:18
GWNUM? Unregistered Information & Answers 3 2010-09-12 19:52
GWNUM as DLL? Cyclamen Persicum Software 1 2007-01-02 20:53
GWNUM library bearnol Software 6 2006-02-24 11:19

All times are UTC. The time now is 04:26.


Sat Jul 17 04:26:12 UTC 2021 up 50 days, 2:13, 1 user, load averages: 2.14, 2.36, 2.35

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.