HS09BF - Primes in Brainf##k
Your task is to print all primes up to 100 separated by a single comma. Please do not print anything else after the last prime.
Attention: You can use any programming language you want, as long as it is Brainf**k.
Input
Nothing.
Output
In a single line, all the primes up to 100.
Example
Input:
Output:
2,3,5,7,...,97
hide comments
square1001:
2016-07-31 13:52:38
I got 238 bytes for "only printing" method. |
|
Mitch Schwartz:
2015-01-25 20:21:31
@Abhay Pratap: Make sure you remove any extra whitespace. The problem happens sometimes because people didn't notice a trailing newline getting added when clicking "edit" to pull up an old submission. |
|
Abhay Pratap:
2015-01-25 19:23:47
my code size is 226 bytes but getting AC with 233?? why is that?? |
|
Martijn Muijsers:
2014-01-14 01:21:13
First time I've ever seen 'please' in a problem description :) |
|
Ouditchya Sinha:
2013-07-05 15:31:05
@Jander : Thank you for the motivation, 231B now! Will keep trying. :) |
|
Jander:
2013-03-26 20:45:40
@Ouditchya Sinha - Find a different way of solving it. |
|
Ouditchya Sinha:
2013-03-19 13:08:12
Yep! Did it in 243B... how do I reduce it further? |
|
Jander:
2012-12-29 20:03:12
@Mitch - Thanks for beating me on SHORTEN :-) It made me go back and revisit my code. It's a good challenge - I learned a lot when I was looking at this one originally. |
|
Aditya Pande:
2012-10-18 19:37:40
how can it be done within 250 B
|
|
Robert Gerbicz:
2012-10-17 21:19:42
OK, moved to the challenge section. |
Added by: | Robert Gerbicz |
Date: | 2009-09-02 |
Time limit: | 1s |
Source limit: | 1024B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | BF |
Resource: | High School Programming League |