Skip to content

Instantly share code, notes, and snippets.

View demacdolincoln's full-sized avatar

Lincoln de Macêdo demacdolincoln

  • Brasil
View GitHub Profile
addprocs(3)
global dim = 2
################################################################################
# preparando a base de dados #
################################################################################
lin = 3 # linhas
col = 10000 # colunas
trein = SharedArray{Float64}(lin, col)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#Pkg.add("Primes")
using Primes
function genBigPrime()
prime = 0
while prime == 0
#possiblePrime = rand(BigInt(1e+50):BigInt(1e+100))
possiblePrime = Int(rand(1e+2:1e+4))
if isprime(possiblePrime)
prime = possiblePrime
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""
dependências:
* python2
* opencv
* numpy
* matplotlib
"""
import cv2
import numpy as np
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.