問題


List primes which are the sum of two consecutive lower primes plus minus one
Problem statement Some prime numbers can be written as the sum of two consecutive lower primes plus / minus one : Like t...

8ヶ月 前 | 2 | 57 個のソルバー

解決済み


List the near-square primes, p = n² + 1 (Landau's 4th problem)
Historical context At the 1912 International Congress of Mathematicians, Edmund Landau listed four basic problems about prime...

8ヶ月 前

解決済み


Calculate the volume of a cone
Calculate the volume of a cone given an array containing one column of radii and one column of the height of the cone. * Reme...

8ヶ月 前

解決済み


Sum of series IX
What is the sum of the following sequence: Σ 1/k! for k=1...n for different n?

8ヶ月 前

解決済み


area of an annulus
Given the diameter d of the inner circle of the annulus. Given length z of a chord of the outer circle of the annulus. This chor...

8ヶ月 前

解決済み


surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

8ヶ月 前

解決済み


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

8ヶ月 前

解決済み


Spherical Volume
Calculate the volume of a sphere.

8ヶ月 前

解決済み


Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

8ヶ月 前

解決済み


Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

8ヶ月 前

解決済み


sum of non-primes
The sum of the non-primes no larger than 10 is 1+4+6+8+9+10=38 Find the sum of all the positive non-prime integers that do no...

8ヶ月 前

問題


List the near-square primes, p = n² + 1 (Landau's 4th problem)
Historical context At the 1912 International Congress of Mathematicians, Edmund Landau listed four basic problems about prime...

8ヶ月 前 | 3 | 55 個のソルバー

解決済み


Double the next!
Given two numbers, m and n, find a matrix [m,n] where each element value is twice the value of the previous element. Starting fr...

8ヶ月 前

解決済み


Create tangent function out of sine function only
Please don't use cosine and tangent functions

8ヶ月 前

解決済み


Find NaNs in the matrix
Return 1s wherever there is a NaN in the input matrix

8ヶ月 前

解決済み


Maximum of ND-array
Find the maximum element of a N dimensional array. Example: A=[1 2 4 ; -20 4 10]; The maximum is 10.

8ヶ月 前

解決済み


Size

8ヶ月 前

解決済み


Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n. For example: v=[1 2 3 4 5 6] n=3 vNew =...

8ヶ月 前

解決済み


ICFP 2024 Programming Contest June 28 thru July 1
This is to announce the annual ICFP programming contest for 2024. The ICFP 2024 homepage link is ICFP 2024 . Registration will...

8ヶ月 前

問題


Chek the Delta = 6k gap conjecture about arithmetic progressions in the prime number set
Context In the prime numbers set there are some arithmetic progressions (sequences of three or more consecutive prime number...

8ヶ月 前 | 4 | 33 個のソルバー

解決済み


Count the primes in Collatz sequences
Several Cody problems (21, 69, 42937, 44448, 44784, 52422) involve Collatz sequences. These start with a seed . If is odd, the ...

8ヶ月 前

解決済み


No Twins?
Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...

8ヶ月 前

解決済み


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

8ヶ月 前

解決済み


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

8ヶ月 前

解決済み


Area of right triangle
Given a hypotenuse and a leg , calculate the area of right triangle.

8ヶ月 前

解決済み


Find out if the given number is a square of natural number.
For example , Input =4,output =1 Input=1,output=1 Input=0,output=0 Input=8,output=0

8ヶ月 前

解決済み


Area of a rectangle
FInd the area of a rectangle with a length L and width W. Round to the nearest integer.

8ヶ月 前

解決済み


area of a square
find the generic solution for an area of a square

8ヶ月 前

解決済み


Simple Electrical Power Calculation
Calculate the electrical power using the formula: P=V×I where: V is the voltage (in volts) I is the current (in amperes)

8ヶ月 前

解決済み


Integer Division Without Remainder
Write a function that takes two positive integers, a and b, and returns the result of integer division (quotient) without remain...

8ヶ月 前

さらに読み込む