List numbers that are not squares - MATLAB Cody - MATLAB Central

Problem 56240. List numbers that are not squares

Difficulty:Rate
The numbers 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 17, etc. are not perfect squares. Write a function to list the nth term in this sequence. Check the test suite to see which functions are banned for this problem. For background music while solving this problem, you can listen to Dave Brubeck’s Unsquare Dance.

Solution Stats

62.07% Correct | 37.93% Incorrect
Last Solution submitted on Dec 14, 2024

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
13
5

Problem Recent Solvers17

Suggested Problems

More from this Author290

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page