Template:Task: Difference between revisions

include documentation explaining this template's current structure
No edit summary
(include documentation explaining this template's current structure)
 
(3 intermediate revisions by one other user not shown)
Line 1:
{{infobox_begin}}{{Task/Icon}}'''{{PAGENAME}}'''<includeonly>{{#set:is task=true}}</includeonly><br/>
{{Twin Prime Conjecture}}
You are encouraged to [[Rosetta Code:Solve a Task|solve this task]] according to the task description, using any language you may know.<includeonly>[[Category:Programming Tasks]]{{#if:{{{1|}}}|[[Category:{{{1}}}]]|[[Category:Solutions by Programming Task]]}}</includeonly>{{infobox_end}}<noinclude>
{{template|Task identifier}}
 
<hr />
 
This template identifies a page as a task page and adds it to [[:Category:Programming Tasks]] and either the category identified by the first argument to the template instance or (if none is supplied) [[:Category:Solutions by Programming Task]]</noinclude>
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:
{{out}}
<pre>
> Search Size: 100
> 8 twin prime pairs.
</pre>
 
<pre>
> Search Size: 1000
> 35 twin prime pairs.
</pre>
6,951

edits