[ 3 2 5 7 ]
Above is a 2 × 2 matrix having elements from the set of first 4 prime numbers i-e S = { 2 , 3 , 5 , 7 } such that they may or may not repeat.
For how many ordered tuples T ( w , x , y , z ) , where w , x , y , z belongs to the set S , determinant of the matrix M = [ w x y z ] is also prime ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
No solution...just brute force it :)
What if you followed the solution. How would you do it? :P
Log in to reply
What do you mean by followed the solution?
Log in to reply
What if you wanted to follow an algorithm? How would you do it? :)
Log in to reply
@Zeeshan Ali
–
I'm using python here (pseudo-code) (maybe a stupid approach):
Prime_list=[2,3,5,7,...,43] (max
=
7
2
−
2
2
=
4
5
, max prime under
4
5
is
4
3
)
Count=0
Run
w
,
x
,
y
,
z
through
{
2
,
3
,
5
,
7
}
(four-layer for-loop)
if determinant in Prime_list, Count+=1
print(Count)
=D
Log in to reply
@展豪 張 – That's it.. you are good :)
Log in to reply
@Zeeshan Ali – Thank you. This is a good question. Actually the whole set is challenging!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
Problem Loading...
Note Loading...
Set Loading...