Template:Task: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{task}} |
{{task|Twin Prime Conjecture}} |
||
Twin primes are pairs of natural numbers(P1 and P2) that satisfy the following: |
Twin primes are pairs of natural numbers(P1 and P2) that satisfy the following: |
||
Revision as of 05:52, 26 July 2020
Template loop detected: Template:Task
Twin primes are pairs of natural numbers(P1 and P2) that satisfy the following:
- P1 and P2 are primes
- P1 + 2 = P2
Write a program that displays the number of twin primes that can be found under a user-inputted number.
Examples below:
- Output:
> Search Size: 100 > 8 twin prime pairs.
> Search Size: 1000 > 35 twin prime pairs.
Twin primes are pairs of natural numbers(P1 and P2) that satisfy the following:
- P1 and P2 are primes
- P1 + 2 = P2
Write a program that displays the number of twin primes that can be found under a user-inputted number.
Examples below:
- Output:
> Search Size: 100 > 8 twin prime pairs.
> Search Size: 1000 > 35 twin prime pairs.