swapnilghorpade

codepad


swapnilghorpade

Saved pastes by swapnilghorpade:
#Christian Goldbach (16901764) was a
#Prussian mathematician and contemporary of Euler.
#One of the most famous unproven conjectures in number theory is
#known as Goldbach’s Conjecture, which states that every even number
#greater than two is the sum of two prime numbers;

view (43 lines, 2 lines of output) 
/*Longest Duplicated Substring
December 14, 2010
In a previous exercise, we looked at the problem of finding the longest palindrome in a string. In today’s exercise, we look at a similar problem, finding the longest duplicated substring in a string.

view (72 lines, 2 lines of output) 
//Divisors And totatives
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int IsPrime(int num)

view (62 lines, 1 line of output) 