Click here to Skip to main content
15,885,309 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: a prime use of regex Pin
Slacker0073-Jul-23 10:24
professionalSlacker0073-Jul-23 10:24 
GeneralRe: a prime use of regex Pin
Jeremy Falcon3-Jul-23 12:41
professionalJeremy Falcon3-Jul-23 12:41 
GeneralRe: a prime use of regex Pin
BernardIE53173-Jul-23 11:43
BernardIE53173-Jul-23 11:43 
GeneralRe: a prime use of regex Pin
Mircea Neacsu3-Jul-23 16:28
Mircea Neacsu3-Jul-23 16:28 
GeneralRe: a prime use of regex Pin
BernardIE53173-Jul-23 16:54
BernardIE53173-Jul-23 16:54 
GeneralRe: a prime use of regex Pin
jschell5-Jul-23 6:06
jschell5-Jul-23 6:06 
GeneralRe: a prime use of regex Pin
GKP19923-Jul-23 18:12
professionalGKP19923-Jul-23 18:12 
GeneralRe: a prime use of regex Pin
Daniel Pfeffer4-Jul-23 9:04
professionalDaniel Pfeffer4-Jul-23 9:04 
That, I assume, depends on the limitations of the parser. If the parser is written in C or C++, and they use size_t for counting, that could allow finding all primes until at least 65,5352 = 4294836225.

This algorithm is extremely inefficient - O(n2) for each 'n', or O(n3) for all primes less than n. You will run out of time well before you run out of primes.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.

GeneralRe: a prime use of regex Pin
jschell5-Jul-23 6:14
jschell5-Jul-23 6:14 
GeneralRe: a prime use of regex Pin
Daniel Pfeffer5-Jul-23 6:29
professionalDaniel Pfeffer5-Jul-23 6:29 
GeneralCCC 03-07-2023 Pin
pkfox2-Jul-23 21:33
professionalpkfox2-Jul-23 21:33 
GeneralRe: CCC 03-07-2023 Pin
OriginalGriff2-Jul-23 22:00
mveOriginalGriff2-Jul-23 22:00 
GeneralRe: CCC 03-07-2023 - winner ! Pin
pkfox2-Jul-23 22:03
professionalpkfox2-Jul-23 22:03 
Generalworldle 527 2/6 Pin
jmaida2-Jul-23 15:33
jmaida2-Jul-23 15:33 
GeneralWordle 744 Pin
StarNamer@work2-Jul-23 13:20
professionalStarNamer@work2-Jul-23 13:20 
GeneralRe: Wordle 744 Pin
Sandeep Mewara2-Jul-23 16:30
mveSandeep Mewara2-Jul-23 16:30 
GeneralRe: Wordle 744 Pin
Amarnath S2-Jul-23 16:36
professionalAmarnath S2-Jul-23 16:36 
GeneralRe: Wordle 744 Pin
Shane01032-Jul-23 17:56
Shane01032-Jul-23 17:56 
GeneralRe: Wordle 744 Pin
OriginalGriff2-Jul-23 18:39
mveOriginalGriff2-Jul-23 18:39 
GeneralRe: Wordle 744 Pin
GuyThiebaut2-Jul-23 19:53
professionalGuyThiebaut2-Jul-23 19:53 
GeneralRe: Wordle 744 Pin
Sander Rossel2-Jul-23 20:51
professionalSander Rossel2-Jul-23 20:51 
GeneralRe: Wordle 744 - 5 4 me Pin
pkfox2-Jul-23 20:52
professionalpkfox2-Jul-23 20:52 
GeneralRe: Wordle 744 Pin
ChandraRam2-Jul-23 22:54
ChandraRam2-Jul-23 22:54 
GeneralRe: Wordle 744 Pin
Cp-Coder3-Jul-23 1:47
Cp-Coder3-Jul-23 1:47 
GeneralRe: Wordle 744 (2/6) Pin
Jeremy Falcon3-Jul-23 6:22
professionalJeremy Falcon3-Jul-23 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.