Skip to content Skip to sidebar Skip to footer
Showing posts with the label Computer Science

Implementing Extended Euclid Algorithm

Why is the following implementation of the Extended Euclid Algorithm failing? def extended_euclid(a… Read more Implementing Extended Euclid Algorithm

Is There A Good Python Library That Can Turn Numbers Into Their Respective "symbols"?

0 = 0 1 = 1 ... 9 = 9 10 = a 11 = b ... 35 = z 36 = A 37 = B ... 60 = Z 61 = 10 62 = 11 ... 70 = 1… Read more Is There A Good Python Library That Can Turn Numbers Into Their Respective "symbols"?

Finding The Nth Number Of Primes

I can not figure out why this won't work. Please help me from math import sqrt pN = 0 numPrim… Read more Finding The Nth Number Of Primes

ValueError: Invalid Literal For Int() With Base 10: '-' M[i][i] = Int(d[i])

Im working on the code the finding the maximum evaluation (ignoring precedence) such as 2 5+ 3*2 -1… Read more ValueError: Invalid Literal For Int() With Base 10: '-' M[i][i] = Int(d[i])

Finding The Nth Number Of Primes

I can not figure out why this won't work. Please help me from math import sqrt pN = 0 numPrim… Read more Finding The Nth Number Of Primes