{"id":25554638,"url":"https://github.com/letskhabar/primeupto","last_synced_at":"2025-04-12T00:43:50.487Z","repository":{"id":57330396,"uuid":"268990386","full_name":"letskhabar/primeupto","owner":"letskhabar","description":"primeupto is an math library for JavaScript and Node.js. It help you to find all prime number.","archived":false,"fork":false,"pushed_at":"2020-06-08T07:22:13.000Z","size":7,"stargazers_count":7,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T00:43:43.927Z","etag":null,"topics":["hacktoberfest","javascript","letskhabar","math-library","npm","npm-module","npm-package","open-source","opensource","prime","prime-upto"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/primeupto","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/letskhabar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-03T04:36:50.000Z","updated_at":"2022-02-23T22:25:46.000Z","dependencies_parsed_at":"2022-09-21T02:21:52.179Z","dependency_job_id":null,"html_url":"https://github.com/letskhabar/primeupto","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letskhabar%2Fprimeupto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letskhabar%2Fprimeupto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letskhabar%2Fprimeupto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letskhabar%2Fprimeupto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letskhabar","download_url":"https://codeload.github.com/letskhabar/primeupto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501934,"owners_count":21114681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","javascript","letskhabar","math-library","npm","npm-module","npm-package","open-source","opensource","prime","prime-upto"],"created_at":"2025-02-20T13:41:34.126Z","updated_at":"2025-04-12T00:43:50.461Z","avatar_url":"https://github.com/letskhabar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nprimeupto is an math library for JavaScript and Node.js. It help you to find all prime number.\n\n[![Version](https://img.shields.io/npm/v/primeupto)](https://www.npmjs.com/package/primeupto)\n[![license](https://img.shields.io/npm/l/primeupto)](https://www.npmjs.com/package/primeupto)\n[![download](https://img.shields.io/npm/dw/primeupto)](https://www.npmjs.com/package/primeupto)\n[![download](https://img.shields.io/npm/dt/primeupto)](https://www.npmjs.com/package/primeupto)\n[![Fork](https://img.shields.io/github/forks/letskhabar/primeupto?label=fork\u0026style=social)](https://github.com/letskhabar/primeupto/fork)\n[![Star](https://img.shields.io/github/stars/letskhabar/primeupto?style=social)](https://github.com/letskhabar/primeupto/stargazers)\n[![watch](https://img.shields.io/github/watchers/letskhabar/primeupto?style=social)](https://github.com/letskhabar/primeupto/watchers)\n\n\n## Features\n\n- find all prime number upto n.\n- find all prime number from m to n.  // comming soon\n- find number of prime upto n.\n- find number of prime from m to n.\n- find a number is Prime or not.\n- Can be used in command line as well.\n- Runs on any JavaScript engine.\n- Is easily extensible.\n- Open source.\n\n## Usage\n\nprimeupto can be used in both node.js and in the browser.\n\nInstall primeupto using [npm](https://www.npmjs.com/package/primeupto):\n\n    npm install primeupto\n\n\n```js\nconst {primeupto,primelength,isPrime} = require('primeupto');\n\nconsole.log(primeupto(5));     // 2,3,5\nconsole.log(primelength(5));   // 3\nconsole.log(isPrime(5));       // true\nconsole.log(primeupto(34));    // 2,3,5,7,11,13,17,19,23,29,31\nconsole.log(primelength(34));  // 11\nconsole.log(isPrime(34));      // false\nconsole.log(primeupto(25));    // 2,3,5,7,11,13,17,19,23\nconsole.log(primelength(25));  // 9\nconsole.log(isPrime(25));      // false\nconsole.log(primeupto(53));    // 2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53\nconsole.log(primelength(53));  // 16\nconsole.log(isPrime(53));      // true\n\n```\n\n## Run\n\n```\nnode index.js\n```\n\nSee the [Getting Started](https://github.com/letskhabar/primeupto) for a more detailed tutorial.\n\n\n## Documentation\n\n- [Getting Started](https://github.com/letskhabar/primeupto)\n- [Examples](#)\n- [Overview](https://github.com/letskhabar/primeupto)\n- [History](#)\n\n\n\nClone the project from github:\n\n    git clone https://github.com/letskhabar/primeupto.git\n    cd primeupto\n\n\n\n\n\n## License\nMIT,  Copyright (C) 2020","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletskhabar%2Fprimeupto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletskhabar%2Fprimeupto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletskhabar%2Fprimeupto/lists"}