00:01
In this video we are going to be learning how to find the prime number of a given number from the user.
00:12
So to get started, we need to create some variables.
00:19
So we're going to get a variable from the user.
00:25
So i'm a number from the user.
00:29
Call it numbs.
00:32
And we'll convert this.
00:34
Input into an integer.
00:38
The test text to ask the user to enter in and then we are going to create a four loop.
00:51
So let's say for x in range of our number variable.
01:01
Now we're going to check for parameters that are greater than one.
01:06
So if x is greater than one or then write another full loop for i in range to next right if statement if x is 1 into 0 and if 2 break and else x so this here is going to print the amount of times the user input so if they put in 3 so it'll display 3 numbers or it'll loop three times, sorry.
02:02
Let's run this.
02:03
Actually, i know i like putting spaces, but it's not recorded.
02:08
Okay, so let's run this again...