{"id":17821334,"url":"https://github.com/gabriel-logan/primenumbers","last_synced_at":"2025-03-18T09:31:21.785Z","repository":{"id":245020844,"uuid":"817023883","full_name":"gabriel-logan/PrimeNumbers","owner":"gabriel-logan","description":"Repository containing code that aims to find prime numbers and displays a list of them available on the web.","archived":false,"fork":false,"pushed_at":"2024-07-04T05:43:28.000Z","size":24993,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T19:12:19.760Z","etag":null,"topics":["c","c-code","learn","prime","prime-numbers","primes","student-vscode"],"latest_commit_sha":null,"homepage":"","language":"C","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/gabriel-logan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-18T21:36:43.000Z","updated_at":"2024-11-20T19:41:51.000Z","dependencies_parsed_at":"2024-06-21T04:27:10.273Z","dependency_job_id":null,"html_url":"https://github.com/gabriel-logan/PrimeNumbers","commit_stats":null,"previous_names":["gabriel-logan/primenumbers"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2FPrimeNumbers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2FPrimeNumbers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2FPrimeNumbers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2FPrimeNumbers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabriel-logan","download_url":"https://codeload.github.com/gabriel-logan/PrimeNumbers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244192614,"owners_count":20413559,"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":["c","c-code","learn","prime","prime-numbers","primes","student-vscode"],"created_at":"2024-10-27T17:16:46.955Z","updated_at":"2025-03-18T09:31:21.199Z","avatar_url":"https://github.com/gabriel-logan.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PrimeNumbers\nRepository containing code that aims to find prime numbers and displays a list of them available on the web.\n\nThe idea of ​​the repository is to create the most optimized code possible, to generate increasingly larger prime numbers and add them to the primes.txt list\n\n## List of prime numbers\nhttps://github.com/gabriel-logan/PrimeNumbers/blob/main/docs/primes.txt\n\n## Raw file\nhttps://raw.githubusercontent.com/gabriel-logan/PrimeNumbers/main/docs/primes.txt\n\n## Small List of prime numbers (first 1000)\nhttps://github.com/gabriel-logan/PrimeNumbers/blob/main/docs/small-primes-list.txt\n\n## Small List of prime numbers (first 1000) Raw file\nhttps://raw.githubusercontent.com/gabriel-logan/PrimeNumbers/main/docs/small-primes-list.txt\n\n## You can also check if a number is prime using\n\n```bash \ngcc ./checkPrimes.c -o checkPrimes\n\n./checkPrimes\n```\n\n```\nuser@user$ time ./checkPrimes\nEnter a number: 1779999803\n1779999803 is a prime number.\n\nreal    0m0.945s\nuser    0m0.001s\nsys     0m0.000s\nuser@user$\n```\n\n## How each code works\n\n### addToFile.c\nThis code is responsible for adding a number to the primes.txt file.\n\n### checkMultiPrimes.c\nThis code is responsible for checking if a interval of numbers is prime. And if it is, print it on the screen.\n\n### checkPrimes.c\nThis code is responsible for checking if a number is prime. And if it is, print it on the screen.\n\n### createFile.c\nThis code is responsible for creating the primes.txt file. It will erase the file if it already exists.\n\n### createFileWithLimit.c\nThis code is responsible for creating the primes.txt file. It will erase the file if it already exists. It will also create a file with a limit of numbers.\nExample: if you want to create a file with the first 1000 prime numbers, you can use this code.\n\n### checkPrimesWithThreads.c\nThis code is responsible for generating and printing prime numbers on the screen.\n\n### genAndPrint.c\nThis code is responsible for generating and printing prime numbers on the screen.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabriel-logan%2Fprimenumbers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabriel-logan%2Fprimenumbers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabriel-logan%2Fprimenumbers/lists"}