Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'euler'

1760309 - Euler #15: euler
  1. #!/opt/local/bin/perl
  2.  
  3. # Project Euler Problem #0
  4. #
  5. # Starting in the top left corner of a 2x2 grid, there are 6 routes (without backtracking) to the bottom right corner.
  6. #
  7. #    http://projecteuler.net/project/images/p_015.gif
  8. #
  9.  
1485536 - Project Euler: project euler projecteuler
  1. Some answers of http://projecteuler.net/
  2.  
  3. 1: 123
  4. 2: 1089154
  5. 3: 3919
  6. 4: 906609
1484222 - Project Euler: project euler projecteuler
preview unavailable
1435100 - Project Euler #72: project euler 72
  1. #!/usr/bin/env python
  2.  
  3. import sys
  4.  
  5. def getFactors(number):
  6.     if number < 2: return []
  7.     factors, end = [], int(number**.5)
  8.     for i in range(2, end+1):
  9.  
1392766 - Project Euler: project euler projecteuler
preview unavailable
614736 - Project Euler - Problem 11: project euler problem 11
  1. public class Problem011 {
  2.  
  3.     final static public long[][] grid =
  4.        {{ 8,02,22,97,38,15,00,40,00,75,04,05,07,78,52,12,50,77,91, 8},
  5.         {49,49,99,40,17,81,18,57,60,87,17,40,98,43,69,48,04,56,62,00},
  6.         {81,49,31,73,55,79,14,29,93,71,40,67,53,88,30,03,49,13,36,65},
  7.         {52,70,95,23,04,60,11,42,69,24,68,56,01,32,56,71,37,02,36,91},
  8.         {22,31,16,71,51,67,63,89,41,92,36,54,22,40,40,28,66,33,13,80},
  9.  
587595 - Project Euler 1-17: project euler python
  1. #!/usr/bin/python
  2. # -*- coding: iso-8859-15 -*-
  3. import math,sys,time,operator
  4.  
  5. # Simple primality check (slow)
  6. # Basic optimization in place: only check up to sqrt(n)
  7. def isprime_basic(n):
  8.         if n == 1: # Special case
  9.  
587586 - Project Euler 1-17: project euler python
  1. #!/usr/bin/python
  2. # -*- coding: iso-8859-15 -*-
  3. import math,sys,time,operator
  4.  
  5. # Simple primality check (slow)
  6. # Basic optimization in place: only check up to sqrt(n)
  7. def isprime_basic(n):
  8.         if n == 1: # Special case
  9.  
fantasy-obligation
fantasy-obligation
fantasy-obligation