{"id":24374665,"url":"https://github.com/sofisar/c--_twinprime_spring-2022","last_synced_at":"2025-06-14T08:09:08.479Z","repository":{"id":271735599,"uuid":"865076506","full_name":"SofiSaR/C--_TwinPrime_Spring-2022","owner":"SofiSaR","description":"This program prints every pair of prime numbers that are two apart up to the number inputted by the user.","archived":false,"fork":false,"pushed_at":"2024-09-30T00:00:09.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T11:48:51.588Z","etag":null,"topics":["c-plus-plus","loops","loops-and-iterations","searching","value-tracking","while-loops"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SofiSaR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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-09-29T23:12:12.000Z","updated_at":"2024-09-30T00:09:00.000Z","dependencies_parsed_at":"2025-01-09T15:45:39.034Z","dependency_job_id":null,"html_url":"https://github.com/SofiSaR/C--_TwinPrime_Spring-2022","commit_stats":null,"previous_names":["sofisar/c--_twinprime_spring-2022"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SofiSaR/C--_TwinPrime_Spring-2022","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_TwinPrime_Spring-2022","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_TwinPrime_Spring-2022/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_TwinPrime_Spring-2022/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_TwinPrime_Spring-2022/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SofiSaR","download_url":"https://codeload.github.com/SofiSaR/C--_TwinPrime_Spring-2022/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_TwinPrime_Spring-2022/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259783062,"owners_count":22910300,"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-plus-plus","loops","loops-and-iterations","searching","value-tracking","while-loops"],"created_at":"2025-01-19T05:41:02.571Z","updated_at":"2025-06-14T08:09:08.459Z","avatar_url":"https://github.com/SofiSaR.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twin Prime Numbers Program\n\nFeb 6, 2022\n\n\n## Objectives in Practice:\n\n- Develop, compile, and run a C++ program that requires C++ repetition control structures including the while loop, do - while loops, and/or for loops that utilize fundamental algorithms studied to\nperform common tasks, such as finding the max and min of a data set, counting, summing, tracking a previous value, searching and sorting, reading until EOF, etc. in programs to solve problems.\n\n- Transfer a program to the Unix server, use the G++ compiler to compile a program and execute a c++ program that you have written\n\n- Use the basic set of Unix commands to manipulate files.\n\n\n## The Instructions That Were Given for the Project:\n\n\n- Write a C++ program to print all the twin prime numbers below a certain given number. \"A twin prime is a prime number ([Prime Number Wiki](https://en.wikipedia.org/wiki/Prime_number)) that is either 2 less or 2 more than another prime number—for example, either member of the twin prime pair (41, 43). In other words, a twin prime is a prime that has a prime gap ([Prime Gap Wiki](https://en.wikipedia.org/wiki/Prime_gap)) of two. Sometimes the term twin prime is used for a pair of twin primes; an alternative name for this is prime twin or prime pair.\" See the [Twin Prime Wiki](https://en.wikipedia.org/wiki/Twin_prime)\n\n- Your program should output the number of twin prime numbers found.\n\n### Make sure your program conforms to the following requirements:\n\n1. This program should be called TwinPrime.cpp\n\n2. Include the basic header in your program ([Required Header Template](https://canvas.fsu.edu/courses/193490/files/15396772/download?wrap=1))\n\n3. Accept the upper limit from the user (as an integer)\n\n4. Loop until the upper limit number entered is \u003e=1\n   \n5. Loop from 1 to the upper limit and print all twin prime numbers and the number of twin prime numbers found.\n   \n6. Add comments wherever necessary\n\n- Follow the course coding standards outlined in Coding Standards_ (COP3363 Introduction to Programming in C++ for Majors).docx [Coding Standards](https://canvas.fsu.edu/courses/193490/files/15396757/download) .\n\n\n## How to Run the Program:\n\n- Use ```g++ TwinPrime.cpp -o TwinPrime.exe``` and then ```TwinPrime.exe``` in a Linux terminal to compile and run.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofisar%2Fc--_twinprime_spring-2022","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofisar%2Fc--_twinprime_spring-2022","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofisar%2Fc--_twinprime_spring-2022/lists"}