instruction_seed
stringlengths
29
40.5k
source
stringclasses
6 values
Generate a sequence of numbers up to the 100th term using any programming language, adhering strictly to the following pattern: 1 2 3 4 5 6 12 24 36 48 60 120 240 360 480 600 ... The output must strictly match the above format, without any additional text. You are permitted to use only the operators + and - (inc...
evolcodegolf
We have 3 dice in a square dish. The dish is 8 units wide and tall, while each die measures 3 units wide and tall. The dice are facing up, each displaying a different number on their top face. ``` 111..222 111..222 111..222 ........ ........ 333..... 333..... 333..... ``` Then we engage in a game. At each step, we m...
evolcodegolf
Tic-Tac-Latin with Added Complexity! This is a true story, so names have been altered. My Latin teacher, Mr. Latin, created his own proprietary (no joke) tic-tac-toe variant. Let's call it tic-tac-latin. The game is simple; it is essentially tic-tac-toe played on a four by four grid. Formal rule declaration A line i...
evolcodegolf
Your Task Write a program that displays a dot that moves toward the position of your mouse at 4 pixels per second while maintaining a consistent size of 100 pixels. Additionally, the dot must change color smoothly as it approaches the mouse, and the window should fill the computer screen. Input None Output A ...
evolcodegolf
I encountered yet another intriguing prime challenge within the confines of PPCG, and my enthusiasm for primes is ever-present. Upon skimming the introductory text, I mistakenly misinterpreted the underlying inquiry, leading me to ponder what innovative solutions the talented individuals here might devise. Interestin...
evolcodegolf
Pike is a dynamically typed interpreted scripting language, heavily influenced by C, which typically compiles to C99 with a few #defines. (It even has a preprocessor!) Considering the unique characteristics of Pike, what insightful strategies and techniques can you suggest for effectively golfing in this language? I'm ...
evolcodegolf
# Created Prompt: Hexagonal Grid Given two positive integers x and y, return the coordinates of the point in a hexagonal grid that is at a Manhattan distance of y from the origin (0, 0) and lies within the first quadrant. The coordinates should be represented as a tuple (row, column). Examples Definitions: Manhatt...
evolcodegolf
Invent a function that processes a given string as input. This string will consist of Alphanumeric characters Special symbols (including exclamation marks) Your task is to verify whether there are precisely 4 exclamation marks located between any two letters that form a valid word with a length of 5 or more. If this...
evolcodegolf
Construct a valid arithmetic equation featuring certain unspecified digits, and provide the complete numerical representation of the expression. Example: 1#3 123 + 45# => + 456 -------- -------- 579 579 Input The expression can be repre...
evolcodegolf
Consider the fascinating realm of repdigits, which are unique numbers represented in the mathematical form a * (10^n - 1)/9, where a resides within the range of [-9,9] excluding 0 (for instance, examples include 111, -3333, and 66, all crafted from the repetition of a singular digit). Your task is to design a sophist...
evolcodegolf
It is a well-established notion that utilizing logarithmic scales is often perceived as a sign of surrendering to complexity. Consequently, your task is to devise a program or function capable of transforming a logarithmically scaled bar graph into a linear representation, while adhering to a specified base. The input ...
evolcodegolf
Challenge Given a set of guitar tablature, your task is to generate the audio representation of the song as indicated by the tab, either through the speakers of your computer system or by exporting it to an audio file in one of the following formats: .wav, .mp3, .midi, .aiff, etc. Additionally, you will receive a sec...
evolcodegolf
Challenge Premise Bob, an inexperienced pianist, is limited to executing sequences of individual notes. He has developed a rather peculiar technique: for each note succeeding the initial one, if its pitch exceeds that of the preceding note, he utilizes the finger immediately to the right of the previous finger empl...
evolcodegolf
Given a specific atomic number, systematically print the corresponding distribution of electrons across all the shells for the element associated with that atomic number, delving into the nuances of electron configuration in a detailed manner. Expected input/output: Input -> Output 1 -> 1 2 -> 2 3 -> 2, 1 4 -> 2, 2 5...
evolcodegolf
Objective Given an input of text that does not contain characters [ or ], perform the following actions: For every instance of Amen with at least one capital letter (so all instances of Amen excluding amen), output that same Amen (retain capitalization) along with an index of each occurrence. For every instance of /a...
evolcodegolf
I was experimenting with cellular automaton and discovered one that exhibited some intriguing behavior. Here's the operational methodology: it reads a binary string from left to right, appending a 0 to the result upon encountering a 1 followed by 2 subsequent values, and continues reading. If it encounters a 0 (or ther...
evolcodegolf
This task presents a moderately straightforward coding challenge, known in programming circles as "code golf." Your objective is to create a program that, upon receiving an ASCII string, meticulously parses it into two distinct substrings for subsequent evaluation. If the second substring is deemed "later" than the fir...
evolcodegolf
Recently, I undertook the intriguing challenge of designing a binary word search, which necessitated working extensively with grids. This enjoyable experience spurred my desire to develop additional related content. Allow me to introduce you to Pythagoras' Golfing grid: Each of the variables d, e, f, g, h, i, j, k, an...
evolcodegolf
In our contemporary landscape, we have all become quite familiar with the traditional layout of the telephone keypad, haven't we? For your reference, here’s a visual depiction of its arrangement: Consider a given String composed exclusively of lowercase ASCII letters and single spaces. Your objective is to compute the...
evolcodegolf
The task for your software application involves accepting an integer input representing a specific year, such as 1957, and subsequently determining and returning the corresponding century for that specified year. For illustration: Input: 1946 Output: 20 Input: 1705 Output: 18 Input: 1900 Output: 19 Input:...
evolcodegolf
The QWERTY keyboard distance (QKD) represents, succinctly, the measured separation between any two letters, numerals, or punctuation marks on a conventional QWERTY keyboard layout (if one is unavailable, you can consult this image on Wikipedia). It is important to note that only characters devoid of any modifier keys s...
evolcodegolf
Quote notation is a sophisticated method for representing rational numbers based on the principles of \$p\$-adic numbers, expressed in the structure \$x'y\$ where the quote denotes that the preceding number (\$x\$) is "repeated" indefinitely to the left, and is subsequently combined with the number on the right (\$y\$)...
evolcodegolf
Construct a computational routine that takes a non-negative integer, specifically within the constraints of n being less than or equal to one billion, as input, and generates the total count of individual digits present in that integer. Input 12346 456 Output 5 3 Constraint n <= 10^9
evolcodegolf
Given a textual input representing either a recognized state capital or a US state itself, determine the associated US state if the input corresponds to a state capital, identify the corresponding capital city if the input is a US state, or return "Arstotzka" if the input does not match either category. Examples: Aust...
evolcodegolf
Here's a challenge tailored for all you adept wordsmiths! Construct a program or function that accepts a list of words and generates a comprehensive list of all possible concatenative decompositions for each individual word, while also calculating the frequency of each subword generated. For example: (Note: This is onl...
evolcodegolf
Develop a function that accepts as parameters a sorted array of unique positive integers A, along with an integer n. The objective is to enumerate and print all distinct combinations of elements from A that total to n without repetitions. Example: Input: A = [1,2,2,4,4] n = 9 Output: [1,2,2,4] [1,4,4] Bonus: Achie...
evolcodegolf
A celestial number is a positive integer whose decimal representation consists solely of the digit 7. The sequence of celestial numbers begins with 7, 77, 777, 7777. Given a positive integer, return the nearest celestial number. If there are two equally close, return the larger one. Testcases: n output 1 7 2 ...
evolcodegolf
In the intricate domain of ASCII art, one can discover various components such as flowing water, intricate hash walls, and innovative letter-based mechanisms. Imagine yourself situated within a room constructed entirely of hash walls (# signs): ####### # # # # # # # ### # # # ####### In this scenario...
evolcodegolf
Your challenge Given a phrase, determine the product of the ASCII values of its unique characters. Example Consider the phrase "Hello, World!". The unique characters and their corresponding ASCII values are: H = 72 e = 101 l = 108 o = 111 , = 44 Space = 32 W = 87 r = 114 d = 100 ! = 33 Now, ...
evolcodegolf
The project requires the creation of two files, which we will call "x" and "y". These files should act as dual layer reflections: when "x" is executed, it outputs the exact content of "y", while "y" when executed, outputs the exact content of "x". For instance: ``` ./x #output of y's source code, possibly with trailin...
evolcodegolf
I enjoy exploring the intricacies of tinylisp in unique ways, particularly in constructing elaborate data structures: (d P(a(1(2 3))(4 5)0(b 6))) Moreover, I find great pleasure in visually representing these constructs through neatly organized syntax: (d P (a (1 (2 3)) (4 5) 0 (b 6))) Would you assist me ...
evolcodegolf
Design and implement the Discrete Fourier Transform (DFT) for a sequence of arbitrary length, ensuring it can be executed as either a function or a complete program; the sequence should be able to be provided through either direct argument passing or standard input mechanisms. The algorithm must accurately compute the ...
evolcodegolf
This challenge revolves around the classic game of Cops and Robbers, specifically focusing on the robber's thread. For further context, the cop's thread can be accessed here. The law enforcement agents will select an arbitrary sequence from the OEIS database and create a program, denoted as p, that outputs the initial ...
evolcodegolf
Task: Design and implement a program that sequentially renders the specified geometric figure, drawing each line one at a time. Ensure that your program incorporates a pause of one second after each line is drawn, providing a clear interval between line renderings. The program must strictly adhere to a line-by-line dr...
evolcodegolf
Every fraction possesses a unique property regarding its binary representation; while not all fractions yield a terminating sequence in binary, each can be expressed as a composite of a leading segment succeeded by a repetitive element. For instance, consider the fraction \$1/3\$, which manifests as \$0.\$ followed by ...
evolcodegolf
In light of recent developments in artificial intelligence's role in enhancing digital communication interfaces...
evolcodegolf
Develop a succinct program that evaluates, based on an input path, whether Mario can navigate from his starting position, denoted by S, to the endpoint, denoted by E, considering not only his movements but also the need to account for a maximum of three jump attempts per scenario. A path will look something like this: ...
evolcodegolf
Craft a program that processes an input string comprised solely of the digits 0 through 9, ensuring it prints how each digit would visually appear on a seven-segment display using slashes (/, \). Consider the specific digit representations given below: /\ \ \ \/ \ \ /\ / \/ /\ /\ / \ \/\ / \/\ / ...
evolcodegolf
Background We will be engaging with a 3x3 Rubik's cube for this analytical task. Rubik's cubers utilize a specialized notation for the various movements executed on the cube: Each of the 6 distinct faces is designated with a clockwise rotation represented by a single uppercase letter: U, D, L, R, F, and B. Addit...
evolcodegolf
Summary A teacher has been assigned the task of devising word problems for her students based on a provided set of mathematical equations. However, due to her lackadaisical nature, she refrains from employing much imagination in her work and opts for a straightforward and literal transcription of the equations. For i...
evolcodegolf
In recent times, our engagement with straightforward and enjoyable computational challenges has dwindled, so let's remedy that. Provide a sequence of positive integers, each greater than zero, alongside a specified index. Calculate and present the proportion of the integer located at the designated index relative to ...
evolcodegolf
Select six lesser-known locations, one from each inhabited continent: Asia, Africa, North America, South America, Europe, and Oceania. Given that there are numerous remote areas with distinct weather patterns, this exploration aims to uncover hidden gems. Construct a table that displays the upcoming weather condition...
evolcodegolf
A directed network N is given with Nodes M and Connections C, symbolizing airports and one-way flight routes respectively. Flights with distinct flight codes operate between pairs of Nodes in a specific direction. Nodes within N are interconnected through flights with assigned flight codes. A stopover is defined when a...
evolcodegolf
You are tasked with exploring the fascinating realm of Fibonacci sequences defined in base -2. Specifically, we will delve into the unique Fibonacci primes, which are defined as those Fibonacci numbers whose only factors are 1 and themselves when using XOR multiplication in base -2. Understanding Fibonacci in Base -2 ...
evolcodegolf
Consider a piece of paper shaped like a regular polygon with an odd number of sides, specifically a (2m + 1)-gon where m is a positive integer. Each side has a length of 1 unit. You can fold the paper by selecting a vertex and folding it over the midpoints of its adjacent edges. The challenge lies in determining the ar...
evolcodegolf
Devise a computational algorithm or function that accepts a singular positive integer N as input. Generate and return a comprehensive list of all unique decimal representations that can be constructed using precisely N characters, employing the digits (0 through 9), decimal points (.), and negative signs (-) as valid c...
evolcodegolf
Background I aimed to create an aesthetically pleasing typographic arrangement resembling a word cloud, similar to this: these are words floating I calculated the (x,y)-coordinates for the initial character of each word, integrated them into my word cloud generator, and allowed it to process ...
evolcodegolf
Develop a comprehensive program or function that accepts two distinct inputs: 1. A text message that may exhibit various spelling and formatting intricacies. 2. A dictionary of the English language as made available in this specified Github repository (comprising approximately 60,000 words). The function should metic...
evolcodegolf
Task The input consists of a JSON object, where every value is an object (eventually empty), representing a directory structure. The output must be a list of the corresponding root-to-leaf paths, adhering to the specified format. Additionally, ensure that each output path is prefixed with its length in characters. ...
evolcodegolf
The Challenge In a linear configuration of N distinct cities, the i-th city is positioned A[i] kilometers from the origin along a straight axis. You are tasked with constructing an electrical grid incorporating several strategically placed power plants. The stipulation is that these power plants must be established wit...
evolcodegolf
Challenge Given a series of decimal numbers, determine the population variance of the series. Utilize the following formula to compute population variance: Input The input will be a list of floating-point numbers in any representation (array, comma-separated values, etc.). Some examples: 12.5, 14.3, 10.1 7...
evolcodegolf
The tabula recta method is a fascinating encryption technique that utilizes a square table of alphabets to perform polyalphabetic substitution. This method is particularly intriguing due to its visual nature and the variety of ways it can be implemented. How to decode the encryption Create a square table where each ...
evolcodegolf
A Woodall Prime is defined as a prime number that can be derived from a positive integer n using the formula n * 2^n - 1. Your challenge entails generating a Woodall Prime that contains exactly k digits based on the given integer k. In instances where a Woodall Prime with precisely k digits is not obtainable, you are r...
evolcodegolf
Given an array of integers, identify its longest contiguous sub-array (subsequence) that sums to zero, while ensuring that all elements in the sub-array must be unique. The sub-array for output may be an empty array. Input Input an array of integers. Output Output the longest zero sum sub-array. If there are multiple...
evolcodegolf
Background The programming language BrainF*** (commonly abbreviated as BF) is renowned for its extreme minimalism. We will push this minimalism further by completely removing all input/output operations; from here on, we will only utilize the operations defined by the symbols +-<>[], which we will refer to as the BF-...
evolcodegolf
I have encountered a particularly intriguing inquiry on the Code Review site that warrants deeper analysis. I suspect the original poster may have erred in their approach, but I find myself uncertain... Therefore, let’s address this challenge for them! (write a comprehensive program, not merely a function or procedure)...
evolcodegolf
To methodically derive a comprehensive list of all rational numbers that satisfy the condition 0 < r ≤ 1, arrange them systematically by first considering the denominators followed by the numerators, ensuring that any previously mentioned rational number is omitted from the list: 1 1 1 2 1 3 1 2 3 4 1 5 1 ...
evolcodegolf
A Directed Acyclic Graph (DAG) is defined as a graph that is free from cycles, meaning that if there exists a directed edge from node A to node B, there cannot be any sequence of edges leading back to A from B through any intermediate nodes. Your task is to ascertain the acyclic nature of the directed graph presented...
evolcodegolf
Contiguous frequency constraints Examine a list X composed of nonnegative integers, where each integer can appear one or more times. A segment in X is defined as a contiguous sequence of identical numbers that cannot be extended. For instance, the segments of [2,2,3,3,3,0,1,1] are [2,2], [3,3,3], [0], [1,1]. The list...
evolcodegolf
Construct a program inspired by this CMC, requiring the execution of specific operations on a given positive integer that is greater than zero: Begin by checking if the provided number contains each of the ten unique digits (0 through 9) at least once. If this condition is satisfied, return the number of iterations pe...
evolcodegolf
You will be given a positive integer K as input. Your task is to construct a Spiral of K layers, with each layer represented by a different symbol. Each layer should expand outward, creating a unique concentric pattern that grows in size as the layers increase. Below are examples illustrating the expected output: K = ...
evolcodegolf
Given a grid filled with distinct integers, determine if it is feasible to construct that grid by starting with an empty grid of the same size and sequentially filling a single diagonal with the same value, replacing any existing values. Example The following grid: $$\begin{pmatrix}1&2&3\\4&5&6\\7&8&9\end{pmatrix}$$ ...
evolcodegolf
This task involves a code-shuffleboard answer-chaining challenge, wherein the collective outputs will aim to reproduce the lyrics of a cherished 80s song. The complete lyrics of the song are organized line by line. The inaugural response will consist of a program designed to yield the first line of the song (We're no s...
evolcodegolf
In a unique variation of the game played on a hexagonal grid, players take turns moving a single game piece according to specific movement rules. On their turn, a player can choose to move the piece: - n spaces in one of three directions (clockwise, counterclockwise, or directly opposite to the current position). - Th...
evolcodegolf
In the context of defining a generalized Cantor set, consider the process of iteratively removing specific segments of rational length from the middle of all currently intact intervals, commencing with a continuous interval that remains unaltered. The challenge involves crafting a program or function that determines an...
evolcodegolf
Description Imagine a labyrinth structured as a circular grid with 12 defined segments, each housing a mystical artifact. You will begin at a specific artifact and choose an initial movement direction (clockwise or counterclockwise). Upon encountering an artifact, you have two actions: 1. Attempt to harness the po...
evolcodegolf
In light of the enjoyable experiences we've shared engaging in polyglot challenges previously, I propose an intriguing task that necessitates generating outputs in two distinct languages simultaneously. Your solution should accommodate a boolean variable b, producing the outputs "true" or "false" based on its state. Mo...
evolcodegolf
The intricacies of sales taxes across the United States present a multifaceted challenge, particularly with regard to state-level taxation. While most states impose a state sales tax—though a select few refrain from doing so—additional layers of taxation may emerge in the form of county, school district, municipal, or ...
evolcodegolf
Description: Given an alphanumeric string as input, ascertain whether it constitutes a legitimate ordinal numeral in the English language. If it is deemed valid, return a truthy value; otherwise, return a falsy value. (Suggested by @Arnauld. Thanks. Also by @JoKing) For individuals seeking comprehensive information...
evolcodegolf
Engage in a programming challenge that requires you to design a function capable of taking in three distinct strings: a, b, and c. This function should systematically replace every occurrence of the substring b found within string a with the string c. Essentially, your implementation should emulate Ruby's String#gsub f...
evolcodegolf
It is possible that you have a recollection of Xeyes, a demonstration program that was originally included with (and, as far as I am aware, still accompanies) the X window system. Its intended functionality was to create a pair of animated eyes that track the movement of your mouse cursor: Your challenge is to craft a...
evolcodegolf
Given two positive integers X and Y, your task is to generate an output that consists of a combination of the following three ASCII-art animals, ensuring that the final output contains precisely X commas (,) and Y periods (.) if such a combination is achievable. Koala: 1 comma, 2 periods <.,.> Crab: 2 commas, 2 per...
evolcodegolf
Develop a sophisticated program or function that accepts a non-negative integer ranging from 0 to 999,999,999,999 (inclusive) as input and accurately computes the total number of syllables it comprises when articulated in English. Ensure that your implementation is concise yet effective. Specification A billion equat...
evolcodegolf
In the strategic board game known as Blokus, a single player engages in a competitive endeavor by placing pieces onto a \$ n \times n \$ square grid. This unique iteration is constrained to one individual who possesses \$ 21 \$ distinct polyominoes, comprised of \$ 1 \$ to \$ 5 \$ tiles each. As they strategically plac...
evolcodegolf
Your task is, given a square grid of digits (0-9), output one of the ways that the digits can be grouped such that: Each digit is part of exactly one group. All groups have the same number of digits. All groups are bounded by one polygon-like shape (this means that every digit in the group is next to [left, right, up,...
evolcodegolf
This is Hole-3 from The Autumn Tournament of APL CodeGolf. As the original creator of the challenge, I am authorized to share it here once more. Given: a specified number of turns (please clarify whether no movements equate to 0, otherwise we will presume it is labeled as 1) and a compilation of one or more startin...
evolcodegolf
My Challenge In my current role at work, I am responsible for the upkeep of approximately 700 laptops, a task I manage alone (well, with both hands since I'm not lacking in limbs). Given the high frequency and varied nature of their usage, these devices often return to me with some degree of damage. My foremost conce...
evolcodegolf
You will be tasked with examining a two-dimensional array along with a specified number to determine whether the provided matrix qualifies as a Toeplitz matrix. A matrix is classified as a Toeplitz matrix if every diagonal that descends from the top-left to the bottom-right contains solely one unique element. The matri...
evolcodegolf
Currently, Try it online! features a total of 680 searchable languages, each of which can be queried by partial strings. For instance, typing "lega" yields the result "05AB1E" (legacy), while "d+" returns only "Add++". However, there are cases where no unique string exists for a particular language; for example, inputt...
evolcodegolf
Background In this challenge, a partition of a set S represents a collection of nonempty subsets of S that are mutually disjoint and whose union encompasses the entirety of S. We designate a partition p as finer than another partition q (and conversely, q is coarser than p) if p can be derived from q by subdividing s...
evolcodegolf
The challenge is to transform a 32-bit unsigned integer into its corresponding hexadecimal representation, as dictated by the IEEE 754 (32-bit) binary32 format. Specifically, interpret the integer as the bit-structure of a single-precision floating-point number and convert it to a hexadecimal string. In this represent...
evolcodegolf
Here’s a pixelated 5 by 7 font representing the numerals 0 through 9, designed with intricate details to highlight their unique features: .███. █...█ █...█ █...█ █...█ █...█ .███. ..█.. ███.. ..█.. ..█.. ..█.. ..█.. █████ .███. █...█ ....█ ...█. ..█.. .█... █████ .███. █...█ ....█ ..██. ....█ █...█ .███. █..█. █..█...
evolcodegolf
In the strategic game known as Ghost, two players alternately pronounce a letter during their respective turns. At any given moment in the game, the sequence of letters articulated thus far must initiate a legitimate English word. The player who unwittingly completes an entire word is deemed the loser. For instance, if...
evolcodegolf
There was a prior inquiry regarding the development of a specialized HQ9+ compiler capable of translating HQ9+ code into the specific target language in which it is originally composed; however, that discussion was eventually closed as a duplicate of the interpreter challenge, since the conversion of an interpreter to ...
evolcodegolf
During my recent exploration of combinatorial math, I stumbled upon a fascinating property of partitions and their factorial counterparts! For instance: 4! + 2! + 1! = 4! + 2 + 1 = 4! + 3 = 6! Your task is to take a string comprised solely of Arabic numbers and exclamation points, and combine these factorials into th...
evolcodegolf
The task of enumerating distinct triangular formations within a visual representation is a cognitive exercise frequently employed in analytical assessments. You are presented with an illustration comprising geometric configurations primarily focused on triangular structures. Your responsibility is to meticulously ident...
evolcodegolf
Background Envision that I am in the process of crafting an exceptionally lengthy necklace composed exclusively of the two distinct characters, A and B. Your task involves calculating the total number of occurrences of the substring AB within the concatenated string. However, since this representation is akin to a ne...
evolcodegolf
Background In our previous exploration, we delved into the intricate task of counting groups of a specified size, a challenge that posed significant complexity. This time, however, we will narrow our focus exclusively to Abelian groups, defined as groups characterized by a commutative operation. Formally, a group (G,...
evolcodegolf
Seismographs operated by the United States Geological Survey have recently identified a significant seismic event! Rapidly deployable emergency response units require an urgent estimation of the populace potentially affected by this occurrence. Develop a program that accurately calculates this estimate. Your program ...
evolcodegolf
This is a quine variation. Introduction We all write short code, for a myriad of obscure reasons, but regardless of our intentions, it will occupy at least 144 pixels/byte (using a 12px font). However, what if we could encode our code within images? This is your task today. Challenge Your objective is to read in ...
evolcodegolf
Given 2048 8-bit integers, where two of these integers are unique while the others occur four times (resulting in 1028 distinct integers), identify the two unique values. To optimize execution time and minimize RAM consumption, the program must run on a 16MHz PIC microcontroller with only 64B of RAM. A random data gene...
evolcodegolf
Objective: A guru once asserted that the quintessential code selfie is ideally captured at a diagonal angle emanating from the upper left corner. A code selfie closely resembles a Quine, albeit rotated 45 degrees clockwise. Your challenge is to devise a program that generates this code selfie in a manner that adheres...
evolcodegolf
This is a repost of this challenge, intended to revamp it for looser I/O formats and updated rules. You are to write a program which takes an integer polynomial in \$t\$ as input and outputs the Laplace transform of this polynomial, ensuring that your implementation adheres to both efficiency and clarity in the algorit...
evolcodegolf
In the context of analyzing a predetermined sequence comprised of 625 individual 32-bit unsigned integers—where each integer resides within the inclusive range of [0, 2**32)—your task is to identify which among the following specific pseudorandom number generators is responsible for producing that particular sequence: ...
evolcodegolf
In the context of a sizable numerical input represented in base 10, such as 1234567891011121314151617, your task is to identify and extract all prime "subnumbers" within it. A prime "subnumber" refers to any sequence of consecutive digits (derived from the given number) that forms a prime number in base 10. The challe...
evolcodegolf
Introduction In 2017, Finland commemorates a significant milestone, celebrating its centenary of independence. To honor this pivotal moment in history, you are tasked with the intricate creation of a representation of the Finnish flag for widespread appreciation. Challenge Develop a program or function capable o...
evolcodegolf
Task: Given a selected subset of numbers, such as integers or natural numbers, analyze an input array to compute a new array where each element is replaced with the frequency of its occurrence in the original array. For instance, transforming [1, 2, 2, 1, 4, 8, 1] would yield [3, 2, 2, 3, 1, 1, 3]. Consider input and o...
evolcodegolf
Challenge: Given an integer index n, please either produce the n-th item from the provided sequence or generate the entire sequence up to and including index n: 25,25,7,28,29,20,21,22,23,14,35,26,7,28,29,20,16,29,12,15,28,21,14,17,30,13,16,29,12,15,28,21,10,6,12,18,15,11,7,13,19,17,13,9,15,21,18,14,10,16,22,19,15,11,17...
evolcodegolf
Explore the realm of Lucas Numbers, a fascinating numerical sequence where the first two terms are 2 and 1, and each subsequent number is the sum of the two preceding ones, defined as L(n) = L(n-1) + L(n-2). For this task, identify the Lucas numbers up to a given integer y, which should be between 4 and 35. Your chal...
evolcodegolf
Could you assist me in deciphering this for clarity? Heist Operatives Determine every potential configuration of \$n\$ functional characters that can be modified along with their corresponding transformations, where \$n\$ is selected by the law enforcement officer. It is imperative to change exactly \$n\$ character...
evolcodegolf