2.9 of 5 247 reviews Wayne, PA 5000+ Employees

SunGard Senior Software Engineer Interview Question

I interviewed in Pune (India) and was asked:
"Write a program to find prime numbers between 1 to 100000. primes = [] for x in range(1,100000): for y in range (2, x-1): if x % y == 0: break else: primes.append(x) print "Prime Numbers: ", primes NOW OPTIMIZE IT. (Yeilling)"
Add Tags [?]
Answer Flag Question

Part of a Senior Software Engineer Interview Review - one of 59 SunGard Interview Reviews

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.

Glassdoor is your free inside look at SunGard interview questions and advice. All interview reviews posted anonymously by SunGard employees and interview candidates.