AR1ch


Joined 5 months ago
Homeworks submitted:
Homework comments:
1
0

About Me

No description provided.

Classes

MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming

Class status: Established
Role: Student
. 5% complete

Submitted Assignments

MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming: Lesson 2, HW 1

take a look at my code and some critique is greatly appreciated! i'm sure it could be cleaner and more "mathmatically correct" but it computes and not bugged as far as i'm concerned. just the first problem is coded not the second one

pc=2
var=3
while (pc<1000):
    div=2
    var=var+2
    while var%div!=0:
        div=div+1
        if var%div==0 and var==div:
            pc=pc+1
print var
    

AR1ch 5 months ago