The sequence in question in this problem involves numbers m such that all sums of consecutive positive integers ending with m are not prime. The number 12 is not in the sequence because 11+12 is prime. The number 13 is not in the sequence because 13 is prime. However, 14 is in the sequence because all of the sums 14, 14+13, 14+13+12, etc. through 14+13+12+…+1 are not prime.
Write a function that returns the nth number in this sequence.

Solution Stats

11 Solutions

7 Solvers

Last Solution submitted on Dec 11, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...