Prime Factorial code-golf math number
For the purposes of this question, the prime factorial of a number n is the result of multiplying all prime numbers smaller than n, and then multiplying the result by n.
Your Task:
Write a program or function to find the prime factorial of a number, as o...
How to spot them
Take a positive integer k. Find its divisors. Find the distinct prime factors of each divisor. Sum all these factors together. If this number (sum) is a divisor of k (if the sum devides k) then, this number k, is a BIU number
Examples
Let's take the number 54
Find all the ...
In this answer chaining challenge, you will work together to figure out how to output all the 26 letters of the English alphabet!
How does this work?
For each answer, you must pick a new language (or a new major version of a language, for example, python 2 and python 3 are counted separately) t...
Output an Anagram! No Not That One!
code-golf anagram string
Given a unique list of strings that are anagrams of each other, output an anagram of those words that is different from each word in the list.
The strings will be alphanumeric, and there is guaranteed to be a valid anagram.
Test Cas...
In star citizen i just shot a window out and jumped into space, I then flew through space with my rockets and on the move took out another window and ninja rolled in jumped a balcony and kept going
Anonymous
@HyperNeutrino Congrats in advance for getting almost 350 rep on PPCG today
Write a program that processes an ASCII art representation of a tangled string and decides whether or not it can be untangled into a simple loop. The tangle is represented using the characters - and | to represent horizontal and vertical segments, and + to represent corners. Places where the stri...
yeah I maybe should've added to the infinite bounties
but I mean mostly if nobody else makes an answer I was initially planning on just awarding the existing one but I thought to give everyone a chance so I specified as such :P
While doodling around with numbers, I found an interesting permutation you can generate from a list of numbers. If you repeat this same permutation enough times, you will always end up back at the original array. Let's use the following list:
[1, 2, 3, 4, 5]
as an example
Reverse the array. ...
Do you know about finite fields (or, primitive roots) so that I can show you an example code using those and if you can tell how to improve that using class (in python)
It’s raining numbers! Better to get a good umbrella!
code-golf ascii-art
Your task is to take in one integer input and print a “raining” alternating pattern with that number, and an umbrella of appropriate size to protect yourself from such a rain!
Examples
1
_|_
/ \
-----
|
C
2 ...
@flawr I wouldn't use * here: 3x^2 + 5 = min(3+x+x,5)
The tropical semiring (ring without additive inverses) is a semiring $\langle \Bbb R \cup \{\infty\}, \oplus, \otimes \rangle$ with $x \oplus y = \min(x,y)$ and $x \otimes y = x+y$.
This challenge is inspired by a board game I played some time ago.
The story of this challenge doesn't necessarily have to be read, the goal of the challenge-section should explain everything necessary.
The Story
People are locked inside a large room with a human-devouring monster. The walls of...
@Lembik 'abcd' ⍳ 'abca' looks for the first occurrence of each letter of abca in abcd. ⍳⍨ 'abca' looks for the first occurrence of each letter of abca in itself.
CMC: write a function that when given two natural numbers x and y, return whether x<=y, where <= is an ordering on the natural numbers such that the order type of the natural numbers become $\omega^\omega$
@Lembik It is because the fonts are not so well designed. The Greek one looks nice with Latin letters, while the APL one is positioned/sized wrong: ⍳ndex versus ɩndex
@Lembik It isn't the first substring of matching pattern/
@Lembik abda stands out as obviously analogue to adca, so I assume you missed the fact that your (probably random) letters caused a pattern to occur 1 char earlier, namely dabd.