Skip to content

Instantly share code, notes, and snippets.

View PrashantUnity's full-sized avatar
🎯
Focusing

Prashant Priyadarshi PrashantUnity

🎯
Focusing
View GitHub Profile
@PrashantUnity
PrashantUnity / SieveOfEratosthenes.cs
Created January 8, 2022 18:21 — forked from SuprDewd/SieveOfEratosthenes.cs
Sieve Of Eratosthenes
View SieveOfEratosthenes.cs
using System;
using System.Collections.Generic;
using System.Linq;
namespace Primes
{
public static IEnumerable<int> SieveOfEratosthenes(int upperLimit)
{
int sieveBound = (upperLimit - 1) / 2,
upperSqrt = ((int)Math.Sqrt(upperLimit) - 1) / 2;
View UnityCodingCheatSheet.txt
// Unity C# Cheat Sheet
// I made these examples for students with prior exerience working with C# and Unity.
// Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting