Topic: eratosthenes-prime-numbers Goto Github
Some thing interesting about eratosthenes-prime-numbers
Some thing interesting about eratosthenes-prime-numbers
eratosthenes-prime-numbers,1: O crivo de Eratóstenes é um algoritmo usado para identificar números primos. O algoritmo (apresentado aqui da maneira mais simples) primeiro declara um array de N posições de valores booleanos, todos iguais a true (considerando que em princípio qualquer número pode ser primo). O algoritmo, em seguida, marca todos os elementos do array cujos índices são múltiplos de 2 e maiores que o próprio 2 como false, indicando que nenhum múltiplo de dois pode ser primo. O algoritmo repete esse último procedimento para todos os valores múltiplos de 3 e maiores que 3, depois para todos os valores múltiplos de 4 e maiores que 4, e assim sucessivamente, até chegar até N/2. Ao final, os índices dos elementos do array que valerem false serão valores não-primos, e os que ainda valerem true depois da execução do algoritmo serão primos. Dica: Para entender melhor o algoritmo, rode uma simulação em papel antes. 2) Escreva uma implementação de uma tabela hash na qual tanto os valores quanto as chaves são do tipo string. Você não deve usar o HashMap, já existente no java, e sim implementar a sua própria versão de uma tabela hash. Defina os seguintes métodos: get(key), put(key,value), remove(key), containsKey(key), e size(). Lembre-se que todo objeto possui o método .hashCode() que pode ser usado para gerar um código hash para esse objeto. Escreva também um programa para testar sua solução.
User: denis-tek
eratosthenes-prime-numbers,Implementing Erastothenes Algorithm and Other stuff (:
User: eliakimatamba
eratosthenes-prime-numbers,Here you can find some of mine projects from the bachelor's course of Algorithms and Data Structures, having Luca Tesei as professor at the University of Camerino (UNICAM)
User: flaminaire000
eratosthenes-prime-numbers,Trying out various optimizations on the well-known Eratosthenes algorithm and alternatives. Including coroutines and RxJava.
User: janhendrikvanheusden
eratosthenes-prime-numbers,A program that generates prime numbers upto a given limit
User: kipsangmarion
eratosthenes-prime-numbers,
User: pendulun
eratosthenes-prime-numbers,project one IJC class
User: pomjak
eratosthenes-prime-numbers,Sieve of Eratosthenes
User: ptim0626
eratosthenes-prime-numbers,but what 'bout B-For Math ?
User: rayvantsahni
eratosthenes-prime-numbers,Two simple methods for finding prime numbers
User: songtosoft
eratosthenes-prime-numbers,Data Structures II - Exercise 1 from Roteiro de Laboratório 1 – Aquecimento.
User: stefaniojr
eratosthenes-prime-numbers,Example project where I compute miscellaneous problems of applied math in JS.
User: tobiasbriones
Home Page: https://tobiasbriones.github.io/ep-misc-computations-in-js/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.