Lecture 2

Nov. 11th, 2009 05:21 pm
elz: (ada-tubes)
[personal profile] elz posting in [community profile] intro_to_cs






Problem set 1: Computing prime numbers, product of primes

This one's a little trickier, so feel free to comment if you run into any problems or want to brainstorm with other people!

(eta: having issues with poll, alas)

Date: 2009-11-12 04:30 am (UTC)
gchick: Small furry animal wearing a tin-foil hat (Default)
From: [personal profile] gchick
Of course, if you believe, as all right-thinking people must, that ticky box is ALWAYS ticky, it's an infinite loop. But who am I to resist?

Date: 2009-11-12 05:06 am (UTC)
From: [personal profile] ex_wicker969
Hey, I'm all for being a bit of a smartass. I realized I misread the question so I'm going back through all the Python Programming Wikibook examples, which led to this:

question = "Which prime do you wish to find?"
print (question)
n = raw_input()
print ("You wish to find the " + n + "th prime? Fat chance of THAT!"

aqgHeNVyWCUz

Date: 2012-01-07 05:23 am (UTC)
From: (Anonymous)
I rekcon you are quite dead on with that.

Profile

Introduction to Computer Science

July 2010

S M T W T F S
    123
45678910
11121314151617
18192021222324
2526272829 3031

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 10th, 2025 04:30 am
Powered by Dreamwidth Studios