0

Even prime number?

that is still a great question in the world and my teacher didnt know another even prime number exact number 2, how you as programmer can found even prime number ? i saw some program on challange forum only do check is the number that input by user is prime or no.

12th Oct 2018, 9:53 PM
SillyPony
SillyPony - avatar
4 Answers
+ 5
Any even number larger than 2 will be divisible by 2 and therefore can not be a prime. So even the best programmer here won't be able to find one. ;-)
12th Oct 2018, 10:30 PM
HonFu
HonFu - avatar
+ 2
HonFu Respect for solving this with mind code first
13th Oct 2018, 1:33 AM
Evan Martine
+ 1
This question is right up my alley as I just programmed a prime number generator earlier that goes until my computer doesn't. A prime number can be found in code by using elements such as modulus(%) and for loops. Its actually the final boss of beginner code to graduate to intermediate data types
13th Oct 2018, 1:36 AM
Evan Martine
0
Evan Martine yup, its for intermediate level programmer or more, i didnt expect i make this program, i just want to know if there are program that can show even number expect 2 already exsist or no.
13th Oct 2018, 4:21 AM
SillyPony
SillyPony - avatar