I need a function that returns True or False if an integer n is a prime. Any 'high speed' thoughts?
sneekula 969 Nearly a Posting Maven
Recommended Answers
Jump to PostForget the googlling, doing a search for "prime" within our code snippets section landed a function that outputs a list of prime numbers in python :)
All 7 Replies
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member
mawe 6 Junior Poster
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member
mawe 6 Junior Poster
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
jrcagle 77 Practically a Master Poster
wallars 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.