Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculating Anti-Primes
#5
Thumbs Up 
(07-06-2023, 07:54 PM)mnrvovrfc Wrote: Welcome to the forums.

I have never understood this need for speed, and even less, the desire to make the executable smaller. Because usually it comes from people needing to compare one thing to the other. Just use it, dude, if it's easy enough and convenient.

That comment wasn't aimed at the OP nor at anybody else in particular.

The program that I wrote to try to create prime palindromes out of 19-digit _INTEGER64, had performance that satisfied me. It had to search through an input file for possible candidates. For each candidate, it had to calculate if it were prime or not. I wasn't expecting the program to blaze through things with a lowly dual-core CPU and only 4GB RAM. The thing is I don't have time nor patience to "do" C++ to see if it could run faster and perhaps gobble up more RAM.
Hi and thanks for the feedback, greatly appreciated.  I should have noted that the time to execution increases exponentially (or something like that) as the number of anti-primes you desire goes up.  

I was asking the community to just take a quick look and see if I am missing any commands, functions, or features of QB64 that I could leverage.  I put a little more detail in my reply to bplus.  This would help greatly as we increase the number of anti-primes calculated.

Your prime app sounds very nice.

Thanks!
Reply


Messages In This Thread
Calculating Anti-Primes - by Space_Ghost - 07-06-2023, 06:56 PM
RE: Calculating Anti-Primes - by bplus - 07-06-2023, 07:16 PM
RE: Calculating Anti-Primes - by Space_Ghost - 07-06-2023, 08:00 PM
RE: Calculating Anti-Primes - by mnrvovrfc - 07-06-2023, 07:54 PM
RE: Calculating Anti-Primes - by Space_Ghost - 07-06-2023, 08:11 PM
RE: Calculating Anti-Primes - by bplus - 07-06-2023, 11:38 PM
RE: Calculating Anti-Primes - by Space_Ghost - 07-06-2023, 11:43 PM
RE: Calculating Anti-Primes - by Jack - 07-07-2023, 11:50 AM
RE: Calculating Anti-Primes - by Space_Ghost - 07-07-2023, 04:38 PM
RE: Calculating Anti-Primes - by Stuart - 07-07-2023, 08:15 PM
RE: Calculating Anti-Primes - by Space_Ghost - 07-07-2023, 10:12 PM
RE: Calculating Anti-Primes - by david_uwi - 07-08-2023, 04:10 PM
RE: Calculating Anti-Primes - by Jack - 07-08-2023, 04:39 PM
RE: Calculating Anti-Primes - by Kernelpanic - 08-13-2023, 12:23 AM
RE: Calculating Anti-Primes - by david_uwi - 07-08-2023, 05:45 PM
RE: Calculating Anti-Primes - by Jack - 07-08-2023, 05:59 PM
RE: Calculating Anti-Primes - by Space_Ghost - 07-08-2023, 07:02 PM
RE: Calculating Anti-Primes - by Jack - 07-08-2023, 07:14 PM



Users browsing this thread: 3 Guest(s)