Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pya's latest activity

  • pya
    pya replied to the thread QBASIC Processing time.
    Hi Mikrom, Thanx for all your help on this issue. I will now give programming a rest (and give you some peace also). Till I come...
  • pya
    pya reacted to mikrom's post in the thread QBASIC Processing time with Like Like.
    Hi pya, The negative number you received is the result of subtracting two values returned by the TIMER function. The value returned at...
  • pya
    pya replied to the thread QBASIC Processing time.
    Hi Mikrom, Yes, I set COUNT as As _Unsigned _Integer64 and it worked. I have now identified the 200,000,000th Prime. The program ran...
    • 200M Prime Output v9.JPG
  • pya
    pya replied to the thread QBASIC Processing time.
    I found the Error : I did not have a DIM statement for COUNT. the 20,000,000th Prime is 373587883 and it took 1187 s. pa99
  • pya
    pya replied to the thread QBASIC Processing time.
    Hi Mikrom, I tested your latest version with the counter but after about 17 minutes the program stops at 1.676E+07 and does not go up...
  • pya
    pya replied to the thread QBASIC Processing time.
    Thanx Mikrom. I will try to understand your code and test it in a few days time. Your help is much appreciated. pa99
  • pya
    pya replied to the thread QBASIC Processing time.
    Hi Mikrom, Thanx for your help. Your code has reduced processing time by over 50%. Very happy. (See below). I can now test large...
  • pya
    pya replied to the thread QBASIC Processing time.
    My mistake. Output also tested on https://primes.utm.edu/nthprime/index.php#nth Thanx pa99
  • pya
    pya posted the thread QBASIC Processing time in QBasic.
    Hi Mikrom, This QBASIC program searches for the kth Prime Number and prints the Prime Number and k value. I have tested it on a site...

Part and Inventory Search

Back
Top