Skip to content

Instantly share code, notes, and snippets.

View shohan4556's full-sized avatar
💻
Making things that does not Exists !!

Shohanur Rahaman shohan4556

💻
Making things that does not Exists !!
View GitHub Profile
int main()
{
int i,n,x;
printf("Enter a positive number to check prime");
scanf("%d",&n);
x = sqrt(n);
for(i=2;i<=x;i++)
{
if(n%i==0)
break;
#include <stdio.h>
int main()
{
int i,n,x;
printf("Enter a positive number to check prime");
scanf("%d",&n);
x = sqrt(n);
for(i=2;i<=x;i++)
{
#include <stdio.h>
int main()
{
int i,n,x;
printf("Enter a positive number to check prime");
scanf("%d",&n);
x = sqrt(n);
for(i=2;i<=x;i++)
{
if(n%i==0)
#include <stdio.h>
int main()
{
int i,n,x;
printf("Enter a positive number to check prime");
scanf("%d",&n);
x = sqrt(n);
for(i=2;i<=x;i++)
{
if(n%i==0)
#include <stdio.h>
int main()
{
int i,n,x;
printf("Enter a positive number to check prime");
scanf("%d",&n);
x = sqrt(n);
for(i=2;i<=x;i++)
{
if(n%i==0)
#include <stdio.h>
int main()
{
int i,n,x;
printf("Enter a positive number to check prime");
scanf("%d",&n);
x = sqrt(n);
for(i=2;i<=x;i++)
{
if(n%i==0)
#include <stdio.h>
int main()
{
int i,num,count=0;
printf ("Enter the to test: ");
scanf ("%d",&num);
for(i=2;i<=num/2;i++){
if (num%i==0)
count++;
@shohan4556
shohan4556 / find out the largest prime number
Created September 3, 2014 17:14
find out the largest prime number bangla
#include <stdio.h>
int main()
{
long long number;
printf("Enter a number to know its largest prime factor: ");
scanf("%lld",&number);
long long div=2, maxFact;
while(number!=0){
@shohan4556
shohan4556 / simple user authentication in php
Created September 4, 2014 12:38
simple user authentication in php
<?php include_once('db.php');
// Using include_once(), we are including the file db.php By including this file, we automatically get connected to the database.
?>
<?php
$fname=$_POST['fname']; // pass data of firstname field through "POST" method
$lname=$_POST['lname']; // pass data of lastname field through "POST" method
$email=$_POST['email']; // pass data of email field through "POST" method
<?php include_once('db.php');
// Using include_once(), we are including the file db.php By including this file, we automatically get connected to the database.
session_start(); //starting session
?>
<?php
// table name 'sign_up'
$email=$_POST['email'];