Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.
Problem hidden on 2013-12-24 10:52:12 by Mitch Schwartz

TEST00 - Prime numbers

Ahmed wants to List all the prime numbers from 0 to n ; He will do this for N times

Input

The input file first line contains the number of cases N.

then followed by N lines.

each line contains the number ni where i is the trial's number; Ahmed wants to calculate all primes till it


Output

A file of N lines ; line  i contains all the prime numbers till ni


Example Number 1:

Input:
2
5
7

Output:
2 3 5
2 3 5 7

Example Number 2:

 Input:

3
5
1
7


Output:
2 3 5

2 3 5 7
Conditions:
N [Number ofTrials] is between 0 and 100
0< ni <10000


ID RESULT TIME
code...



Added by:Abdelrhman Mohamed Ibrahim Abotaleb
Date:2010-08-09
Time limit:0.100s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ADA95 ASM32 ASM64 BASH BF CPP CPP14 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JS-RHINO LUA NEM NICE OBJC OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON RUBY SCALA SCM guile SCM qobi ST SQLITE TCL WHITESPACE
Resource:Abdelrhman Abotaleb [ECTL labs 2010]

hide comments
2013-12-24 10:48:31 Mitch Schwartz
Haha, what a "trick". Problem hidden.
2013-06-18 17:25:08 ওয়াসী (Wasi)
@Piotr got your trick. Its cool! ;)
but my pathetic C shorten skill kept the score at 38!
I wonder how to shorten 3 more chars
Edit: 37chars
This problem is just for fun (until the bug is fixed and re-judged)

Last edit: 2013-06-18 19:17:11
2013-05-25 16:01:04 Mitch Schwartz
Thanks to Łukasz Kuszner, the 0 scores at the top have been fixed with rejudge. I don't know what weakness in the test data or judging allows score of 35, but there seems to be no harm keeping this problem visible in tutorial section, for now anyway.

Last edit: 2013-05-25 16:14:56
2010-08-26 08:51:08 Piotr KÄ…kol
Still not fixed? :-/
If anybody fix it please rejudge all submissions.
2010-08-13 19:51:29 Chandra Sekar
Pretty cool trick :D
2010-08-13 19:47:24 Piotr KÄ…kol
I agree in 100%. Or at least test should be changed.
2010-08-12 16:53:57 Piotr KÄ…kol
Oh, come on. You can do better. ;-P Look at my code. ;-)
BTW I also wonder why 2 users got 0. :-|

RE (debanjan) Piotr,I got your trick :P I think this should me moved away from SPOJ itself :P

Last edit: 2010-08-13 19:29:42
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.