Coder Social home page Coder Social logo

prime's People

Contributors

willtech avatar

Stargazers

 avatar

Watchers

 avatar

prime's Issues

Convert to LevelDB

Looking at the use of a tuple to store the computed Prime and to load them from storage, it seems apparent that the program operation would benefit through increased speed from the use of LevelDB. The use of a tuple is faster than a list however, as the size of the tuple grows past 10,000 Prime the speed slows from 6 seconds to many days for computing 10,000,000 Prime. LevelDB allows for lookup and storage in memory of only the relevant Prime needed for computation an optimisation designed to increase the speed average of searching for more Prime.

LevelDB Features:

  • Key-Value Store: Data is stored as key-value pairs, where both keys and values are arbitrary byte arrays.
  • Ordered Data: The data is stored sorted by key, which allows for efficient range queries.
  • Atomic Batches: Multiple changes can be made in one atomic batch, ensuring data integrity.
  • Compression: Supports compression of the data via Google's Snappy compression library, reducing storage space. (although we should not use it)
  • Simple API: Offers basic operations like Get, Put, and Delete, making it easy to use.

Are the first 1,000,000 Prime?

A statistical analysis using an online tool shows it is very likely the first 1,000,000 numbers found in _data release WIPPPING IT are Prime both that they are and the 1,000,000th number 15485863 is the 1,000,000th Prime.

If anybody wants to perform some sort of empirical validation it is a worthwhile assignment I can include your comments.

Professor. Damian A. James Williamson

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.