Problem 52183. List the nth prime quartet prefix
Solution Stats
Problem Comments
-
2 Comments
Nikolaos Nikolaou
on 11 Apr 2023
Nice problem , made me think :)
Augusto Mazzei
on 2 May 2023
Ah! this was a cool opportunity to use a regex in a fair way:
with 'n' input
persistent a
if isempty(a)
primes(27e7);
a=regexp(sprintf('%d.',ans),'(\d+)1\.\13\.\17\.\19\.','match');
end
strsplit(a{n},'.'); str2num(ans{1}(1:end-1))
Solution Comments
Show commentsProblem Recent Solvers8
Suggested Problems
-
Find the alphabetic word product
3075 Solvers
-
Matrix with different incremental runs
119 Solvers
-
Solve the set of simultaneous linear equations
376 Solvers
-
478 Solvers
-
Decrypt the cypher using XOR encryption (for beginners)
39 Solvers
More from this Author219
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!