Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Magic square!
#2
I don't see how modulo is going to help you. If you get to assume that the input is valid (no gaps or anything) you can just take the square root of the length of the number of comma-separated numbers.
Reply


Messages In This Thread
Magic square! - by frequency - Dec-17-2018, 05:30 PM
RE: Magic square! - by micseydel - Dec-17-2018, 06:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Finding square roots using long division. jahuja73 10 5,461 Feb-24-2021, 01:25 PM
Last Post: jahuja73
  Square reverse sum(overloaded) shihomiyano 6 4,113 Aug-18-2018, 06:27 AM
Last Post: micseydel
  Perfect Square program forumer444 4 8,951 Sep-01-2017, 09:32 PM
Last Post: forumer444
  Magic Square Puzzle Harnick 1 4,887 Aug-09-2017, 04:51 PM
Last Post: nilamo
  Square Root on calculator MP1234593 1 7,970 Jun-06-2017, 06:58 PM
Last Post: nilamo
  List of square roots python py7 6 6,420 Apr-08-2017, 11:26 PM
Last Post: ichabod801
  Square root of a number mbestivert 1 4,070 Nov-24-2016, 04:35 PM
Last Post: casevh

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020