如何VB6.0寫測試某數字是否為質數(prime)的程式(編號:7671)

Hi, I am a novice in VB 6.0 from the US.
Do me a favor please. I don't know how to write a program to (1)determine if a number is prime (2)determine all the prime below the number....Thanks for your help.