Prime number removal
remove all prime numbers from the input
e.g.
input =
1 2 3 4 5 6 7 8 9 10 11 12 ...
8年弱 前
解決済み
MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.
8年弱 前
解決済み
Sum of series II
What is the sum of the following sequence:
Σ(2k-1)^2 for k=1...n
for different n?
8年弱 前
解決済み
row removal
Remove the nth row from input matrix M and return the resulting matrix in output N.
8年弱 前
解決済み
Colon operator of two vectors
You are given two vectors of equal length: VecStart, VecEnd
Each vector contain a set of integers, where VecEnd(j)>=VecStar...
The Dark Side of the Die
It is well-known that opposite sides of a classic hexahedral die add to 7. Given a vector of dice rolls, calculate the sum of th...
Vector of numbers divisible by 3
* Input(n) - any integer
* Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0
Examples:
* n=6...