Feeds
提问
How to find the maximum element by length without a loop?
I have 2 strings: a and b. How to get the longer one using built-in functions?
3 years 前 | 2 个回答 | 0
2
个回答提问
How to increase precision in this case?
I have a code which finds the first 10 consecutive numbers after decimal that forms a prime number: k = 10; while true a =...
3 years 前 | 1 个回答 | 0
1
个回答提问
Find the first 10 consecutive numbers after decimal point of pi and e that forms a prime number
k = 10; while true a = mod(floor((pi-3)*10^k),10^10); if isprime(a) == 1 printf('Numbers after decimal: %d\n',a) ...
3 years 前 | 0 个回答 | 0
0
个回答提问
Help pls. Find the first 10 consecutive numbers after the decimal point in e and pi which sum is the prime number
Find the first 10 consecutive numbers after the decimal point in e and pi which sum is the prime number isprime() checks if nu...
3 years 前 | 0 个回答 | 0
0
个回答提问
Random numbers generation problem
How to create randi([a,b],1,c) in which every number is not divided by 2,3,5,7,11 ? Or not neccecary in randi, it can be other f...
3 years 前 | 2 个回答 | 0
2
个回答提问
How to simplify that?
How to simplify while or (mod(i,2) == 0, mod(i,3) == 0, mod(i,5) == 0, mod(i,7) == 0, mod(i,11) == 0) I...
3 years 前 | 1 个回答 | 0
