Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Prime number
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 function isprime(n) { var i=1; var flag=0; for (i=2;i<n;i++) { if (n%i===0) { flag=1; break; } } if (flag===0) return true; return false; }
run
|
edit
|
history
|
help
0
Binary search tree - Pre-order Traversal
null enum value check is false
RomaSlot2
random no generation array
IsStringAPalindrome
Operator Overloading Example (+, -, *, /, ==, !=)
Strings in C# with some properties examples
Error
generics one more doubt-stack overflow exception
12