Community Profile

photo

Daniel


Last seen: 1 year 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?

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

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

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

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

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

1 year ago | 1 answer | 0

1

answer