pseudocode help

hi everyone i need some help to put me in the right direction
i have a hard time for some reason with the pseudocode but i need to

create a Boolean function named is prime which takes an integer as an argument and returns true if the argument is a prime number, or false otherwise. use the function in the program that prompts the user to enter a number and then displays a message indication whether the number is prime..


so the pseudocode i have so far which isn't much is...

function Boolean isprime(integer number)

an for some reason i am stuck after this, i'm not even sure if i am going in the right direction...
i'm not even sure if i am going in the right direction...


you could paste your you've write so far so someone can see in wich direction are you acctualy going.
looks like a good start to me
create a for loop from i=2 -> i=Number-1. Inside your loop divide the inputed number by each value of I. Use mod to look for a remainder. You can also use a while loop.
Topic archived. No new replies allowed.