Question: how can I get the prime numbers in a C# code?? 

Answer: Similar to C++. You need to make a funtion for it, meaning you don't have a direct instruction for it. It's pretty easy. Just take every number from 2 to ... and check if it only divides to itself and 1.
This question from the Yahoo Q&A forum is categorized in the topic: Computers & Internet