+ 1

Can anyone give me the program to check the largest prime number?

12th Jan 2018, 6:50 AM
Manivannan
Manivannan - avatar
5 Answers
+ 4
@VcC how about a challenge: create a challange that VcC cant solve as oneLiner. ... I would not join that challenge as i would not t4y to find the highest prime.
12th Jan 2018, 9:26 AM
Oma Falk
Oma Falk - avatar
+ 2
while True: wait for godot() p +=1 print(" this is the highest prime" + str(p))
12th Jan 2018, 7:39 AM
Oma Falk
Oma Falk - avatar
+ 2
If there is a highest prime p, take fac(p) and add 1. This number hp should be a prime or it must be devisible by another prime > p. They say it is one of the most beatiful proofs in mathworld. there is no highest prime.
12th Jan 2018, 7:43 AM
Oma Falk
Oma Falk - avatar
12th Jan 2018, 9:09 AM
VcC
VcC - avatar
+ 1
I always upvote posts on oneliners ;-)
12th Jan 2018, 9:36 AM
VcC
VcC - avatar