The language is Python and I am using Idle 3.3.0 compiler. I will load the three programs that I need to use together to calculate the time difference on wikisend.
The algorithms are 16.4, 16.5, 16.6
I am currently working on combining the programs but must display them as I indicated in my request.
My due date isnt until Thursday so we have time.
16.4 should be the primenumbers
16.5 is Efficient Prime
16.6 is Sieve
My mistake on that.
For the time I thought about importing time and using the following code:
startTime = time.time()
whatever I want to time here
endTime = time.time()
elapsed = endTime - startTime
then my display code here
I am working on my display as shown
Well you beat me but I can see we were on the same path. Can you explain the use of the ## XXXXX your loops? I have never used those before and I notice if I take them out I get indent errors.
The program works great!
I use a single # XXXXX to comment out code and I understand that part. But there is code that is clearly required that has two # XXXXX front of it as shown.
count += 1## if count % 10 == 0:## #print(i)## else:## #print(str(i) + " ", end = "") #print("\n" + str(count) + # " prime(s) less than or equal to " + str(n))
I was trying to take out the ## XXXXX ran into indent errors. Once I put them back in everything worked again. I was trying to understand their function in this code.
I get it now. ## XXXXX the same thing as #.
I left the code in mine also and commented it out. I didnt realize that ## XXXXX the same. I should have seen that it was not doing anything when it was red out.
Thanks for the great explanation.
A pleasure working with you as well. I will have some other projects next week and the week after.
So I will talk with you soon. Thanks for the link,