![]() |
![]() |
#1 |
May 2011
France
101000012 Posts |
![]()
I need to find the first multiple of a prime number > an offset
i/e Let Offset be 223092870 Let P be 21247 I want N like Offfset+N = 223 093 500 = 105000 * 12247 223092870 div 21247 = 10499 223093500 -223092870 = 630 = N I code this but I have a problem when the offset change I do N:=P-(offset mod p) Is the problem in the pollynome ? Thanks |
![]() |
![]() |
![]() |
#2 | |
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
![]() Quote:
2)the underline is a line I personally don't see the use for 3)the italic is a spelling error 4) really because the line I wrapped in code tags says (Offset+N)-Offset = N 5) I come to: X=Offset+(P-(Offset%P)) working no ? |
|
![]() |
![]() |
![]() |
#3 |
May 2011
France
7·23 Posts |
![]()
( yes I've checked it, and I'm guessing it's a typo?)
Yes I inverse the two first digir of P 21247 is not 12247!!!! 223092870 div 21247 = 10499 P^10499 < Offset p^10500 > Offset N= P^10500- Offset or N=P-(offset mod p) N must be >0 and < Offset) I restart from 0 and I code verifying the error line by line Have you an idea how to process the Golback conjecture: all even value is the sum of two primes numbers?? John |
![]() |
![]() |
![]() |
#4 | |
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
![]() Quote:
Code:
f=[];for(i=1,100,for(j=1,100,f=concat(f,if((prime(i)+prime(j))%2==0,prime(i)+prime(j)))));vecsort(f,,8) |
|
![]() |
![]() |
![]() |
#5 | |
May 2011
France
7×23 Posts |
![]()
The polynome was goof the error was at the line just after.
I make N= N^2 ((an optimization) but it's good only if you begin at one: Quote:
You can modify 3- Starting from p^2, count up in increments of p and mark each of these numbers greater than p itself in the list. These numbers will be 2p, 3p, 4p, etc.; note that some of them may have already been marked. not if you make a continue search not a set of continues integers John |
|
![]() |
![]() |
![]() |
#6 | |
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
![]() Quote:
if you are looking to make a code I'll give you the steps but you likely don't want that. |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
More Power!!!! | petrw1 | Teams | 10 | 2019-10-15 17:36 |
TDP as power used? | CRGreathouse | Hardware | 9 | 2016-02-06 18:46 |
How much power am I really using? | petrw1 | Lounge | 19 | 2013-12-13 13:00 |
Power 2 | JohnFullspeed | Miscellaneous Math | 45 | 2011-07-10 20:13 |
IBM Power 6 | Unregistered | Information & Answers | 7 | 2008-08-30 14:36 |