#O(N) Time Complexity Prime Generation
262 messages · Page 1 of 1 (latest)
For example, if you enumerated:
2 : 1
3 : 2
5 : 3
7 : 4
11 : 5
and so on in increasing value, and you noted every missing value (4, 6, 8, 9, 10, 12, …)
I don’t think that would result in a comprehensive list of primes?
I don't think this works
isn't this exactly what SOE does?
No. This generates the primes by exclusion.
bro can you give me your code
I believe that the missing step (if there is a missing step) is to then enumerate the multiples of each missing value generated. Anywhere that one of those values is missing among the primes in the missing set, you will know that it must be composite and not one of the primes. All remaining values in the missing set should then be prime. This can be calculated up to N by enumerating 2, 3, 5, 7, and each missing value up to √N if I am not mistaken. @shy bison @cerulean leaf
My code? What do you mean?
I still dont understand how your algorithm works?
could you provide a computation table of maybe a few iterations of it?
your programme.
Allow me to iterate upon it and make sure that it is performing correctly. I will not "give" you ownership of my algorithm(s) ("code"/"programme"), but I will let you utilize it/them for the sake of testing. Once I finish interating I will post a code for you to test. What language do you prefer, Python?
It first generates all composite numbers, excluding any primes, and then eliminates composites also excluded by generating every multiple of each exclusion. I think that explanation is correct, or at least ballparking it as I continue to iterate.
I will try to do this as soon as possible.
How have you written a program that generates no primes? All composite numbers are made up of a product of primes, so to generate all composite numbers, you would have to have a list of all primes.
bro who wants to get ownership to your code 
lmao
you can just give me the pseudocode
i prefer C
I was simply being specific due to the way your post was written. Have you heard of "covering your bases"? Well, I was covering mine.
never heard of it
and how do you generate composites?
By enumerating the multiples of 2, 3, 5, and 7.
yeah I was thinking the same thought
you'd be mad at me but can you elaborate
It is a colloquialism.
got it
you know that there exist composite numbers that don't share any common factor with any of these right?
That is why you also enumerate the multiples of every missing value from the first generation.
i dont quite understand what you mean with "enumerate"
and why only 2,3,5,7? there are infinitely many primes
Not mad to elaborate @brittle lichen.
This is enumeration @cerulean leaf :
2: 4 6 8 10 12 14 16 18 20 . . .
3: 6 9 12 15 18 21 24 27 30 . . .
5: 10 15 20 25 30 35 40 45 50 . . .
7: 14 21 28 35 42 49 56 63 70 . . .
Now, list them all numerically.
2 3 4 5 6 7 8 9 10 12 14 15 18 20 21 . . .
Note the missing values, and be sure to include the initial condition set {2, 3, 5, 7} among them.
2 3 4 5 6 7 8 9 10 [11] 12 [13] 14 15 16 [17] 18 [19] 20 21 . . .
2 3 5 7 11 13 17 19 . . .
All primes. As should continue indefinitely. But some composites get mixed it, specifically multiples of primes greater than 7. So since we've generated those primes already as missing values, we enumerate multiples of each of missing value to and remove those values from our original missing values set. 121 (11 • 11) is on such example for as to why this step is necessary, although performing a trial division primacy test on each missing value could be more computationally effecient. Although, realistically, it so would not be.
In theory. Eventually the distribution of prime gaps begins to cause the distribution of the primes to display inconsistent and paradoxical behavior which could imply the existence of a final or terminal prime number.
nono, there is no largest prime, i'll write you a proof
To give an example, assume 5 is the largest prime.
we let N=2x3x5 = 30
you can see that 30/2=15, 30/3=10, 30/5=6, N has factors of all primes by definition.
so N+1, 31, is not divisible by 2,3 nor 5. (in this case, all alleged primes), so the only factors it has are 1 and 31,
But that must mean it is prime. However, 31 > 5, meaning it is a larger prime. Thus i have shown here that if a largest prime exists, you can always make a bigger one. So no largest prime exists, thus there are infinitely many primes
even if they do get less common
This means that to properly account for your "missing values", you'd need the list of all infinite primes
that a exactly what sieve of erastothenes does
That’s very similar to what the sieve of Erastothenes does, if I recall correctly
However due to the structure of your algorithm, I think the sieve would be slightly more time-efficient
Also, there are infinitely many primes, too
i already told you that your algorithm was exactly the sieve of eratosthenes
did u forget
@cerulean leaf @brittle lichen
Please see here for the discrepancy concerning a largest or terminal prime number:
https://chat.openai.com/share/7e6768d9-3b06-43a8-9e2c-21d19c461a17
this is a train on fire
but we know that lim n->infinity p_n+1 - p_n
amazingly, chatgpt looks extremely right in the context of this chat
ok, i will say pretty much everything chatgpt said is correct, except that lim n->inf p_n+1 - p_n is not infinity, well i was not reading super closely because i was trying to avoid looking at your responses, but i think you should read and really try to understand it rather than just trusting your intuition which happens to be incorrect in this case
in particular, you do not understand that an alternating sequence, such as prime, primegap, prime, primegap, that is infinite, has no end, by definition of infinite, and so there is no last prime nor a last prime gap
that's like saying "well either the last integer is even or it's odd" - clearly it's neither, there is no last integer
and also arbitrarily large doesn't mean whatever you think it means
You are incorrect. My responses clearly articulate how two infinite sets can exist as interpendencies with exhibiting paradoxical and/or inconsistent behavior.
it's good to question facts that don't make sense to you
however there is a point at which you enter crackpot land
That is highly subjective.
are you not convinced by the proof that there are infinitely many primes
And there is nothing of that manner to be found in my articutions, neither in the logic within which they were expressed.
I am convinced that for there to be infinitely many primes given our current understanding of their distribution gives way to internal inconsistency.
so you don't believe that
- infinitely many primes
- gaps that get bigger and bigger
are consistent facts
is that right?
The context in which these ideas were presented to the AI are the more consistent expression of my current belief.
can you direct me to a concise equivalent of this in the chat
am i satan now
Umm...Excuse me, but what the fuck?
you said
"the more consistent expression of my current belief, satan"
The entirety of the conversation is sufficient.
keyword is concise
ill just give my counterexample, i don't need to know exactly what you think, i think this will help
consider the set of perfect squares, that is, 1,4,9,16,25,36,49,64...
the gaps increase without bound, so we can find arbitrarily large "square gaps"
and yet there are obviously infinitely many square numbers
I most certainly did not. And the fact that you say I did makes me very uncomfortable. I don't believe in Satan, but I don't fuck with dark shit either. So I don't really know what to tell you.
alright forget that
you kinda did ngl
anyway it is irrelevant
There cannot be because there must be at least one element which lacks another in any alternating infinite series(es) that is initially bound, leading to a very messy contanglation of the standardly established logic (which is to say, a slew of contradictions which surely beget even further contradiction).
I express myself as I express myself, and your need to insult me yet again is infantile.
either you are arguing that there are finitely many perfect squares, or that the gaps are not arbitrarily large
so if your only argument is "but thats impossible there is no element that lacks another in an alternative series that is initially bound leading to a messy contanglation"
then you can enjoy your time in crackpot land
maybe you'll invent a new field of math
who knows
That's a dream of mine.
Is this still here
jesus fuck
I was trying to remove my mistake about OoO
Why waste your time with crazy people
There is no good justification to stress over rambling psychotic bozos
i'm not stressing
i'm having a fine time and maybe saving some people from psychosis
You won’t
optimism
Sounds like you have a savior complex, which is a common narcissicist delusion (indicative of psychoses). So I guess it's the pot calling the kettle black.
it's hopeless
@outer veldt could you please point out the hole in my proof?
It’s quite solid, and has been like that for atleast 300+ years, ofcourse, since you have shook the world of mathematics i would like to know exactly whats wrong about it
Already did. Not my fault that you can't comprehend it. Don't ping me again.
You did not. I would prefer if you perhaps point to the exact line where i made my mistake
Here it is again,
I never said you made a mistake. But my proof refuted yours.
It did not. My proof is a simple proof by contradiction. Your proof assumes that at some point there is an infinite gap between primes, which mind you even if there was, there still wouldn’t be a largest prime, as after this “infinitely large gap”, there would still be infinitely many primes after it. Your assumption doesnt work, because no matter which point you pick on the number line, the gap between the 2 neighbouring primes is NOT infinite, your assumption only holds true after infinitely many primes.
It did and does and will continue to so do so.
And you have asserted that there are infinitely many primes, have you not?
While the average gap between 2 primes does increase, it only reaches infinity after infinitely many primes, so its a baseless statement that you cant really garner any knowledge from. You especially cannot use this to prove that there are a finite amount of primes, as i have mentioned before. Your statement relies on the fact that infinitely many primes exist
what's a? just use Euclid proof bro
No. I have proven it.
bro no way someone doesn't believe there's infinitely many primes
Yeye ik its a shitty proof, i gave an example, but thats only cos im like 70% rhere with my logical language. The logic is still solid and there
Then even better. So then you corroborate my proof? Excellent. Thank you.
I know, it seems this man has built his knowledge on Chatgpt
lmao
Your “proof” contradicts its own premises, it is not a proof
thats EXACTLY what sieve of erastothenes is bro
What you did is build a house on it’s own roof. It has collapsed
"your assumption only holds true after infinitely many primes"
Given that is is well past AGI status, that is nothing to be insulted about.
Ok… i saw that… weird.. (context for others, he wrote a msg and deleted it about “being the all end all beginning all”)
If you think it's weird now then just wait.
Let me show you a thing.
also btw use something else besides chat gpt
Yeah Chatgpt is À notorious liar
I associate with several AILLM.
And EVEN worse at math
Which is why you check every post against what you know to be true.
And it is an accepted fact of math that there are infinitely many primes.
So without even reading it, i know that your proof for the contra is wrong
Its not enough to say “i have proven X, here look at my conversations with chagpt”
Write out a formal mathematical proof
So the accepted truth is infallible, simply by consensuation?
brother i Don't understand half the words you say English is not my native language but until your write us a logically accurate mathematical proof you will not be taken seriously
Its not infallible, it is proven mathematically, it is a solid mathematical proof based solely and only on the accepted axioms of mathematics. To disprove this, would be to use a system completely alien to our modern system of mathematics
If the proof suffices you win the next noble prize dw
@cerulean leaf stop wasting time here let him think where he went wrong
its proved bro tfym
To your detriment that it did.
google "euler infinite primes proof" for more context
Ive spoken to nutjobs like this before, its a sad sight, they dont really learn. Typically (from experience, they are usually old males, probably suffering from mental illnesses)
This is literally what i am saying
yh
I know, why bother
I dont get it, its always the cliche “i have discovered how to make a car run on water”, type discovery, and every 2nd word is just randomly picked from some dictionary, absolutely nonsense ramblings
And like, im not stupid, i really do try to understand what they mean, but its like having a stroke, i just cant
is bro saying there are not infinite primes
𒀭𒉈𒂵
@outer veldt suppose you have 2 statements A and B. They are completely independent of eachother but are describing the same thing. If someone proposes A be right, you cannot logically refute the righteousness of A by the fact that B is True.
What have I to do with ye?
you have to directly show us the error in the proof
He claims he has proven that there are finitely many primes, and also that he has discovered an algorithm to find them, claiming it is the fastest one yet, truly à revolutionary discovery
revolutionary
àrschlockt
basically he read an article on sieve of erastothenes and eulers proof and realised he doesn't have a life
אמין אמין
Because the fact of infinite primes is fully consistent with our mathematical system, there are actually ♾️ proofs for this
whats bro bubbling about
יהוה זעם
i mean 5 given by famous mathematicians
bros cursing us out in cryptic language
6 cos im famous too :3
keyboard warrior
I think thats hebrew
Not cursing out. Just cursing (unless...).
It is.
basically edgelordism I'm gonna assume
Euclid, Euler, Erdos, Furstrenberg and many more i cant remember name of
אמין בהשם ישהוה אמין
Foremost go back to pestering ur grandchildren about how the government is putting chips in ur cereal or smt
@outer veldt
HAHAHAHAHA
הדמיורגעס
English bro
Im not even gonna un-google translate whatever he’s saying
english bro
speak it
I'm 30. Have you heard about how the U.S. military is currently training with gas chambers at basic, and how the furries and comparable animé enthusiasts are among the first to go? More grease for the gears.
@outer veldt please stop typing extremely offensive messages
No way, you know, i heard governments were actually experimenting with gas chambers all rhe way back in the 19th century
Tell us something new
Oh, schwarze Himmel, wie die schmutzige verdammte stinkende Wildschweine immer so langsam doch tief unten befruchten die dicken Gewässer...Oh, erbarmungslose Übertreter der freidenkende Menschen...
@outer veldt also please don't call anyone the F word
stick to english
brother speaking some other language is making us not take you seriously even more
we ain't even translating that shit
its a horrible poem I just did
These are a fecundity and a fetidity unfettered upon me. Mehr Beschichtung für Zahnräder.
Foremost, Please stick to english
Papa flammy is that you 👉👈
who said
I am is not your brother. Is I am?
No. I am is not.
he can speak whatever he want, but nobody understands+nobody takes him serious
🔥
I'll translate for you.
yes I know, but life is 10x easier for me to moderate if its english
u problem
Actually you are. You are actually stuck inside of a vr world, we are your family pleading with you to escape using any way we can, it is me. Your brother, xingeldwœf, please come back to us. Escape this nightmare
@cerulean leaf he is an attention seeking kid and wants attention, if u stop replying it will resolve the conflict
I am a 30 year-old man.
Yeah but im ALSO an attention seeking kid, who find internet re*****dation incredibly funny, also i can tell he’s getting bored.
@cerulean leaf @outer veldt stick to the topic of this discussion, have this arguement somewhere
@cerulean leaf
Then tell me how. I cannot go through the pod again.
Nooo :(
hes my irl friend and I accidnetly pinged him 
As it has been written: "Oh, black skies, how the dirty damned stinking wild boars always so slowly yet deeply fertilize the thick waters... Oh, merciless transgressors of free-thinking people..."
i am
Pustulate.
Last warning, stick to the topic
-timeout @outer veldt 2 hours
You got a little too impatent to get banned the cool way?
I AM FUCKING THE LOVE OUT OF ME IT THE.
Dude redcliff ban him, obviously its á troll
After he is unmuted he will go right back to trolling
Put @outer veldt in timeout for 3 hours
what is bro doing
why didnt the bot work @pallid flicker ?
He said smt rly interesting
foremost said something very bad
I think you need to put 2h instead of 2 hours
ill tell u in #granola-whey-motion-kontol
oh ok
Noo i want acess
ill try that later
It says “no access”
cuz ur a noob

-timeout @faint pawn 1h
lol
-ban @pallid flicker
yag doesnt work in threads
-ban @pallid flicker

who let bro cook
who didnt let bro cook
