Problem Set 1 Q2. (Have revised my program). My program now finds the correct prime, however I'm still unsure of the outcome of my program. If someone could run the following 2 I'd appreciate it very much. The 11th prime (as I have figured out up to the 11th on paper) is 31, logsum of 26.0243817346 and ratio of 0.839496184987. The, say, 60th prime is 281, the logsum is 265.699392569 and the ratio is 0.945549439746
The logsum should not include the 60th prime number's log. Here is a correct answer. Read the instructions carefully. What is n? :60 The nth prime number is 281 The sum of the natural logs of all primes not including n is 260.061037899 The ratio of the sum of the natural logs not including n over n itself is 0.925484120638
Thankyou very much for answering :) okay I can see the sum, it is easy to fix. So I should assume where a question asks for x to y that y is not included unless specified? Well, thankyou!
Join our real-time social learning platform and learn together with your friends!