Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
4

prime number generator

codeitfast
codeitfast

I decided, while on IDLE, to create a prime number generator. With this, you can find any prime number (as long as your computer is strong enough).


Please upvote!

2 years ago
You are viewing a single comment. View All
1
1
codeitfast
codeitfast

@CodeLongAndPros
Okay...Does python have a timer function?

2 years ago
1
codeitfast
codeitfast

@CodeLongAndPros
nevermind, I'll use threading. 😁

2 years ago
1
CodeLongAndPros
CodeLongAndPros

@codeitfast
You can use :

from time import time start = time() sleep(10) elasped = time.time() - start
2 years ago