Prime number 2. The sqlite strikes back!

Prime number 2. The sqlite strikes back!

Finally got some code working with saving the Primes on a DB. I started by saving as I find the prime and realised that the constant IO activity was slowing the all process down. Next step was multi treading: this is still not 100%. Here is the code so far: # Python program to calculate prime numbers import math import threading import sqlite3 count = 0 primeList = [] dbname=’/home/roberto/primelist.db’ table_name = ‘primes’ # name of the table to be…

Read More Read More

How to find BIG prime numbers

How to find BIG prime numbers

If my calculations are right the best way to find a BIG prime number is to iterate through all the prime numbers before it, why? Because the quickest way to check a prime is to see if it is divisible by all the previous primes, I am not going to waste any processing power on non prime can be defined with prime numbers like 63 = 7*3^2. So here is my first attempt to find that BIG prime. (With BIG…

Read More Read More

Raspberry Pi 2

Raspberry Pi 2

After the temporary death of the Banana Pi (and with it my website) I hastily bought a Raspberry Pi 2 to then find out few days later that the problem with the Banana was SD adapter from micro to normal, the miracle of Easter (Banana Pi = Jesus), replaced the adapter the Banana start again. Need to find a use to this one now….