Quote:
Write a C function that determines whether a number have a given prime factor?
What is the result if second number is not a prime?
If result is same, you just have to find if second number is a factor of first one. Second number being a prime does not matter.
Quote:
And also I was recommended to look into the use of modulus..?
Always read documentation.
Quote:
but I am completely new to programming so any tips would be great!
Show your code to get help.