This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
out/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
__author__ = "Ademar Alves de Oliveira" | |
__copyright__ = "Copyright 2013, Ademar" | |
__credits__ = ["S. Kirkpatrick", "C. D. Gelatt", "M. P. Vecchi", "A. C. L. Junior", "Diego Queiroz"] | |
__license__ = "GPL" | |
__version__ = "1.1" | |
__maintainer__ = "Ademar Alves" | |
__email__ = "[email protected]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
''' | |
@author ademar | |
encontrar os 2 primos que somados formam um numero par | |
''' | |
import sys | |
def getPrimeUpTo(x): | |
print "getting prime numbers up to", x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CustomChronometer Copyright (C) 2012 Ademar Alves de Oliveira and jurema.la | |
// | |
// This program is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
// This program is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:- use_module(library(bounds)). | |
:- use_module(library(clp_distinct)). | |
suudoku(P) :- | |
Rows = [R1,R2,R3,R4,R5,R6,R7,R8,R9], | |
problem(P, Rows), | |
append_all(Rows, Vars), | |
vars_in(Vars, 1, 9), | |
Vars in 1..9, | |
row_constraint(Rows), |
NewerOlder