[sage-support] Re: Single returns with iteration in a range

2020-06-23 Thread u220e
Thank you. On Friday, May 8, 2020 at 2:13:57 PM UTC-7, u220e wrote: > > > > Hi. I'm trying to generate a list of pairs of primes (x,y) within a range > of values such that the digit length of their products is between 19 and > 35. I've written a few different code variations that (unfortunatel

Re: [sage-support] Docker Hub images behind tags on Gitlab and Github

2020-06-23 Thread Chase Meadors
Thanks Julian! I see today the issue appears to have been resolved. Glad to help! On Monday, June 22, 2020 at 8:01:39 PM UTC-6, Julian RĂ¼th wrote: > > Hi, > > * Chase Meadors > [2020-06-22 15:08:11 > -0700]: > > Is there some reason the Docker Hub repository is behind? > > thanks for notifyin

[sage-support] Re: Single returns with iteration in a range

2020-06-23 Thread slelievre
Not sure why one would want the "first pair" each time. Below we define a function that produces an iterator yielding random prime pairs one after the other, with primes picked at random in a range ensuring their product will have the correct number of digits. ``` def prime_pair_for_each_product_

Re: [sage-support] Single returns with iteration in a range

2020-06-23 Thread Vincent Delecroix
First of all if p and q are primes then p - q is even unless p=2 or q=2. Next, there is no need to declare variable in Python. Finally, there are optimized methods to access primes. Look for prime_range, next_prime, Primes, etc x = 3 while True: y = (10**18 // x).next_prime() ymax = (10

[sage-support] Single returns with iteration in a range

2020-06-23 Thread u220e
Anybody? -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.goo

Re: [sage-support] No reply to my sage-trac-account request

2020-06-23 Thread kcrisman
> I made you an owner of sage-trac-account, so now things should be clearer > for you there? > >> Thanks - yes, although I haven't had a lot of time to help create accounts, this is definitely helpful for when new people can help. -- You received this message because you are subscribed