« first day (69 days earlier)
← previous day
last day (15 days later) »
Mr. Xcoder
15:27
CMC:
Check if a positive integer is prime
(without using the built-in)
Soaku
15:40
@Mr.Xcoder btw, you said
E
or
f
, but none of them work here.
i
is a list...
Mr. Xcoder
Try
)I
instead of
i
I really need to store all the common snippets in a gist or something
Soaku
A wiki post could also be useful, it will be visible
Mr. Xcoder
Yeah ik
Wait a moment I've made a big mistake and Dennis just pulled it
I asked for a pull again, but until then,
/
won't work
Soaku
Ugh, why am I still there, I should be making docs for CodeNote at the moment...
Mr. Xcoder
Done,
/
should be fixed now
Soaku
15:48
What was wrong?
Mr. Xcoder
I accidentally removed it
Soaku
removed what?
Mr. Xcoder
The function
/
Soaku
ahh
is... ) pushing 0 because shift+0 = )?
Mr. Xcoder
)
pushes a
0
onto the stack because
0123456789
are functions that perform
Top of the stack * 10 + themselves
Soaku
15:52
i know, but... :P why
)
?
Mr. Xcoder
¯\_(ツ)_/¯
It looks like a toggle to me
Like
toggle numeric mode
Soaku
for me it looks like... something to trick IDE into a not-started paren... .-.
Mr. Xcoder
Huh alright :)(
I have 49 bytes
caird coinheringaahing
@Mr.Xcoder 17 bytes
Mr. Xcoder
And you don't use the built-in?
caird coinheringaahing
15:55
No (I don't use it)
Mr. Xcoder
Wait...
d
ಠ_ಠ
I should really remove
d
right?
caird coinheringaahing
In general or for this challenge?
Mr. Xcoder
In general
Soaku
haha XD
Mr. Xcoder
Now that we have
F
I feel it's no longer needed
CMC:
Primality test for positive integers without
p
or
d
My attempt at 49 bytes
(don't be eager to click before trying first :P)
caird coinheringaahing
16:02
@Mr.Xcoder
bug
- The register is reset in filters and maps
Mr. Xcoder
I am aware of that. Didn't I remove the register?
caird coinheringaahing
Doesn't look like it
Mr. Xcoder
Oh, I didn't...
Anyway I won't bother Dennis with another pull for now.
caird coinheringaahing
Can we output
1
for prime and a positive integer aside from 1 for not prime?
Mr. Xcoder
Should be fixed now
@cairdcoinheringaahing That doesn't follow the standard truthy/falsy definition, so no.
caird coinheringaahing
16:06
In that case,
49 bytes (spoiler)
(very different to yours)
Mr. Xcoder
Mine is invalid ಠ_ಠ I am multiplying instead of dividing
caird coinheringaahing
It seems to work for me, how is yours invalid?
Mr. Xcoder
Hold on a sec
This is the correct version
Let me figure out if the first one is valid.
@cairdcoinheringaahing The first version is just non-sense... I was dividing the input by 1 ;-;
Though it is valid.
caird coinheringaahing
If we could output as I asked before, I would've got
31
bytes :(
Mr. Xcoder
Same here
@cairdcoinheringaahing
Yours
is
invalid :P
There's probably a bug with
M
on empty lists
@Mr.Xcoder Yeah because you're trying to use
enumerate
and then don't handle the empty case...
« first day (69 days earlier)
← previous day
last day (15 days later) »
all rooms
Transcript for
Mar
6
Mar '18
17
Apr
1
A triangular, strange Esolang
A room for the Triangularity esolang:
github.com/Mr-Xcoder/Tri...
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2025 Stack Exchange Inc;
legal
mobile