Can you make a code to find out worlds highest prime number? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Can you make a code to find out worlds highest prime number?

18th Aug 2018, 12:50 PM
Roboject gamerz
Roboject gamerz - avatar
2 ответов
0
there's an infinite amount of prime numbers, so i'm afraid that such a program cannot exist
18th Aug 2018, 5:45 PM
hinanawi
hinanawi - avatar
0
Roboject gamerz data type might not support to hold that output value.. Another option could be to store that output as string like we do for larger number... But again to decide that a prime or not would be a far far complex algorithm... I still think it is possible, but have no guts to start putting it into code at least as of now 😀
18th Aug 2018, 7:24 PM
Ketan Lalcheta
Ketan Lalcheta - avatar