me in my 30's always hated math and until I watch you do math I suddenly know . thank u for your time I truly appreciated . I'm subscribed to keep learning as soon ill start college an have to take a placement exam thank u for your help ;]
Check if a is prime number program: a - integer variable 'our number to check b - integer variable 'loop counter c (2 to a-1) - integer variable 'modulo (rest from dividing) of a and b d - binary variable 'switch equal 0 if a is the prime number and 1 if a isn't prime number d=0 set a value from input if a=0 or a=1 then d=1 else end if if a=2 then d=0 else end if For b=2 to b=a-1 c(b) = a mod b if c(b)=0 then d=1 b=a-2 'stop this for loop else end if next b if d=0 then echo: "a - is prime number" else if d=1 then echo: "a - isn't prime number" end if
me in my 30's always hated math and until I watch you do math I suddenly know . thank u for your time I truly appreciated . I'm subscribed to keep learning as soon ill start college an have to take a placement exam thank u for your help ;]
Like watching these math videos.
This videos was more than great. It is incredible and I never had a great teacher in a lesson ever🎉🎉you deserve respect bro😊
Thank you!
Thank you so much incredible teacher!!!
Great lesson......you're the best.....Sir....Thanks a bunch.
THANK YOU... SIR...!!!
... So, if I understood your presentation well, it means that the only even number which can be a prime number is number 2 ...
Nice 👍
Thank you for your good jobs in sharing your knowledge with other people.
Check if a is prime number program:
a - integer variable 'our number to check
b - integer variable 'loop counter
c (2 to a-1) - integer variable 'modulo (rest from dividing) of a and b
d - binary variable 'switch equal 0 if a is the prime number and 1 if a isn't prime number
d=0
set a value from input
if a=0 or a=1 then
d=1
else
end if
if a=2 then
d=0
else
end if
For b=2 to b=a-1
c(b) = a mod b
if c(b)=0 then
d=1
b=a-2 'stop this for loop
else
end if
next b
if d=0 then
echo: "a - is prime number"
else if d=1 then
echo: "a - isn't prime number"
end if
❤😂take You
1 is neither a composite number nor a prime number. It's because,it doesn't figure in the prime factorisation tree.
I know 🙋🙋 factors 1*3 is 3👈👈