All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Priming a Square (Posted on 2009-08-23) Difficulty: 2 of 5

No Solution Yet Submitted by brianjn    
Rating: 3.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution UBASIC solution | Comment 2 of 5 |
 10   P0=3
 20   repeat
 30      P1=P0+6
 31      P2=P1+6
 32      P3=P2+6
 40      if prmdiv(P1)=P1 and prmdiv(P2)=P2 and prmdiv(P3)=P3 then
 50      :T=2*(P0+P1+P2+P3)
 60      :Sr=int(sqrt(T)+0.5)
 70      :if Sr*Sr=T then
 80       :print P0;P1;P2;P3,T
 90      P0=nxtprm(P0)
100    until P0>1000000
finds
41  47  53  59          400

being the values of A, B, C, D and S, with the latter being twice the total of A+B+C+D. W, X, Y and Z are then the pairwise totals, 88, 100, 112 and 100.


  Posted by Charlie on 2009-08-23 19:49:40
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (8)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information