Skip to content

Instantly share code, notes, and snippets.

@sbhal
sbhal / git.txt
Last active May 21, 2022 20:28
git cmd cheatsheet
#git init
git add .
git commit -m "first commit"
#click to copy the remote repository URL
git remote add origin "remote rep URL"
git push origin master
//implementation of Sieve of Eratosthenes for prime number generation
#include "stdio.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
void prime_no_in_range_simple(int start, int end);
void prime_no_in_range_sieve(int start, int end);