photo

Daniel


Last seen: 2 years ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Thankful Level 2

View badges

Feeds

View by

Question


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?

2 years ago | 2 answers | 0

2

answers

Question


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 =...

2 years ago | 1 answer | 0

1

answer

Question


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) ...

2 years ago | 0 answers | 0

0

answers

Question


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...

2 years ago | 0 answers | 0

0

answers

Question


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...

2 years ago | 2 answers | 0

2

answers

Question


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...

2 years ago | 1 answer | 0

1

answer