Skip to content

This code is built to showcase usage of Node Clusters as well as generating prime numbers and further details for machine learning analysis

License

Notifications You must be signed in to change notification settings

syedshahzebhasnain/Node-Cluster-Prime-Numbers

Repository files navigation

Node-Cluster-Prime-Numbers

This project was built with an intent to generate Prime numbers, and their hashes for further analysis.

The following fuctions are being done on the prime numbers

1- sha1 2- sha2 3- sha256 4- sha384 5- sha512 6- md5

It currently utilizes node cluster to segregate tasks between different CPU Cores The results are then written to a text file.

Start Project

  1. npm install
  2. npm start

Parameters

Set the variable "maxNumber" in index.js to set the max number for finding primes and then calculating their hashes Please provide whole numbers only.

Performance

On a Core i7 machine with 4 Physical and 4 Virtual Cores, this code was able to scan(generate multiple hashes) upto 10,000,000 numbers in around 30 seconds

About

This code is built to showcase usage of Node Clusters as well as generating prime numbers and further details for machine learning analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published