Anonymous user
Rosetta Code:Village Pump/Suggest a programming task: Difference between revisions
Rosetta Code:Village Pump/Suggest a programming task (view source)
Revision as of 17:57, 20 December 2011
, 12 years ago→Unsorted
(→Unsorted: made draft task Zebra puzzle myself) |
|||
Line 366:
* [[Trial Division Sieve]]. We now have [[Primality by trial division]] (testing one number) and [[Sieve of Eratosthenes]]. The latter has trial-division sieves in it, that really don't belong but can't properly go into the former. They should get their own home IMO. Also, [[Generating primes in given range]], whether by offset sieving or by filtering. There is [[Prime decomposition]] of a number into its factors, but there's no [[Generating divisors]] of a number, or [[Counting divisors]] of a number, or [[Euler's totient function]], etc. [[User:WillNess|WillNess]] 09:34, 2 December 2011 (UTC)
* matrix shape: suppose the input is 4 the ouput will be
1 2 3 4
5 8 9 10
6 11 13 14
7 12 15 16
if the input is 5 then the output will be
1 2 3 4 5
6 10 11 12 13
7 14 17 18 19
8 15 20 22 23
9 16 21 24 24
==Insufficient information==
|