Here is the C# program that can find the nth (100000 in this program) prime number: The program starts by initializing primeCount to 0, which
Tag: code
Write a program to find the maximum element in an array using linear search.
In computer science, searching for a particular element in a data structure is a very common task. One of the simplest ways to search for
How to solve “Login failed due to trigger execution”?
Lately, I was trying to run the codemap on my visual studio and got the error “Login failed due to trigger execution”. Details were something
Rust : Convert String to Integer
Convert string to integer Do you want to convert string to integer? Here are the methods to extract integer value i from its string representation s.“1234” to 1234
Get the input in Rust
I started learning Rust lately. Kind of interesting but more to learn. Here is the program that help to get the input from user in
ProjectEuler : Multiple of 3 And 5
Multiple of 3 And 5: Q1 From ProjectEuler.NET Description If we list all the natural numbers below 10 that are multiples of 3 or 5,
Lets Create a Null Checking Extension on C#
Extension methods are static methods behaving like instance methods. We generally use this so that we can use this function as a part of that
How to encrypt and decrypt using cryptography (AES)?
Encryption Code Decryption Code Usage
Create badges using node.js
Hey everyone, Lately, I encountered an problem and the solution was to create the badge of my own. Since I was using node.js and I
Code for drawing a line using Bresenham algorithm in Javascript
Here is the snippet for drawing a line in javascript. function drawline(xa,ya,xb,yb){ var dx=Math.abs(xa-xb); var dy=Math.abs(ya-yb); var p=2*dy-dx; var twody=2*dy; var twodydx=2*(dy-dx); var x,y,xend;