Loading ...
Sorry, an error occurred while loading the content.

Calibration of Prime Number program

Expand Messages
  • Kermit Rose
    I wrote a function subroutine in Python to calculate the k th prime, given a positive integer k. ... 29 ... 541 ... 7919 ... 17389 ... 27449 ... 37813 ...
    Message 1 of 1 , Jun 28, 2008
    • 0 Attachment
      I wrote a function subroutine in Python to calculate the k th prime,
      given a positive integer k.
      >>> Prime(10)
      29
      >>> Prime(100)
      541
      >>> Prime(1000)
      7919
      >>> Prime(2000)
      17389
      >>> Prime(3000)
      27449
      >>> Prime(4000)
      37813
      >>> Prime(5000)
      48611
      >>> Prime(6000)
      59359
      >>> Prime(7000)
      70657
      >>> Prime(8000)
      81799
      >>> Prime(9000)
      93179
      >>> Prime(10000)
      104729
      >>> Prime(11000)
      116447
      >>> Prime(12000)
      128189
      >>>
    Your message has been successfully submitted and would be delivered to recipients shortly.