# Results

## Test cases result

1.
{2,3}, 1
"1"
"0"
Wrong
2.
{2,3}, 3
"3"
"0"
Wrong
3.
{2,3,5}, 4
"4"
"0"
Wrong
4.
{2,3,5}, 10
"12"
"0"
Wrong
5.
{2,3,5}, 20
"36"
"0"
Wrong
6.
{2,3}, 1000
"360287970189
63968"
"0"
Wrong
7.
{5,11,13,17,23}, 100
"24565"
"0"
Wrong
8.
{2,3,5,7,11}, 1000
"59049"
"0"
Wrong
9.
{5}, 25
"596046447753
90625"
"0"
Wrong
10.
{3}, 30
"686303773648
83"
"0"
Wrong
11.
{2}, 61
"115292150460
6846976"
"0"
Wrong
12.
{2}, 62
"230584300921
3693952"
"0"
Wrong
13.
{2}, 63
"461168601842
7387904"
"0"
Wrong
14.
{7,11,53,89,97}, 372
"338601683"
"0"
Wrong
15.
{11,13,43,47,97}, 65
"152581"
"0"
Wrong
16.
{5,11,19,59,67,71,83}, 326
"1073875"
"0"
Wrong
17.
{3,5,19,23,31,59,83,89,97}, 701
"256565"
"0"
Wrong
18.
{5,11,13,23,43,59,71,79,97}, 895
"2331589"
"0"
Wrong
19.
{19,37,41,47,59,61,67,79,97}, 36
"3239"
"0"
Wrong
20.
{2,5,11,23,29,31,83,89}, 846
"130355"
"0"
Wrong
21.
{7,13,17,31,41,47,53,71}, 917
"10480379"
"0"
Wrong
22.
{19,47,61,67,71,73}, 753
"30526587101"
"0"
Wrong
23.
{2,11,17,37,41,43,73,89}, 444
"93092"
"0"
Wrong
24.
{13,17,19,31,59,61,71,79,97}, 339
"762073"
"0"
Wrong
25.
{2,11,13,29,53,59,67,71,73}, 781
"228448"
"0"
Wrong
26.
{5,17,23,37,43,47,67,89,97}, 468
"764405"
"0"
Wrong
27.
{11,13,17,47,59,61,97}, 134
"134749"
"0"
Wrong
28.
{5,11,47,67,73,79,83,89,97}, 983
"17908363"
"0"
Wrong
29.
{19,37,41,43,47,61,83}, 218
"3418801"
"0"
Wrong
30.
{3,11,29,41,43,47,53,61,97}, 456
"212139"
"0"
Wrong
31.
{5,11,23,29,31,41,47,61,71}, 308
"97625"
"0"
Wrong
32.
{7,11,17,29,31,43,59}, 740
"9620347"
"0"
Wrong
33.
{2,11,23,41,61,83}, 477
"840458"
"0"
Wrong
34.
{3,7,13,19,31,37,73}, 31
"273"
"0"
Wrong
35.
{11,23,29,31,47,59,61}, 814
"138917801"
"0"
Wrong
36.
{13,23,43,61,67}, 783
"189134511787
"
"0"
Wrong
37.
{2,7,11,13,19,43,47,61}, 621
"47432"
"0"
Wrong
38.
{5,29,31,43,89}, 446
"442050625"
"0"
Wrong
39.
{2,5,23,29,37,47,59,83,89,97}, 752
"87232"
"0"
Wrong
40.
{23,47,53,67,73,97}, 767
"45544943309"
"0"
Wrong
41.
{11,13,17,37,41,43,59,73,89}, 984
"10336727"
"0"
Wrong
42.
{23,53,59,61,83,89,97}, 482
"570250753"
"0"
Wrong
43.
{2,5,13,19,47,61,67,71,73,83}, 671
"46720"
"0"
Wrong
44.
{7,19,41,43,59,73,83,97}, 48
"4897"
"0"
Wrong
45.
{5,7,19,53,83,89,97}, 141
"51875"
"0"
Wrong
46.
{3,11,19,31,79,89}, 388
"1478979"
"0"
Wrong
47.
{3,7,19,41,43,67,79,89}, 917
"2302857"
"0"
Wrong
48.
{3,5,7,19,37,41,53,83,89}, 606
"72557"
"0"
Wrong
49.
{2,7,11,13,19,43,53,79,97}, 352
"10507"
"0"
Wrong
50.
{11,17,31,41,53,59,89}, 506
"25571249"
"0"
Wrong
51.
{2,3,11,31,59,67,71,73}, 446
"19008"
"0"
Wrong
52.
{5,17,23,71,79,83,97}, 676
"41575115"
"0"
Wrong
53.
{3,5,31,43,79,83,97}, 105
"7719"
"0"
Wrong
54.
{3,23,37,41,79,97}, 892
"239483061"
"0"
Wrong
55.
{7,37,53,73,83,97}, 446
"319178243"
"0"
Wrong
56.
{5,19,23,31,41,53,59,73,83,97}, 316
"140125"
"0"
Wrong
57.
{3,5,31,71,89}, 343
"2234325"
"0"
Wrong
58.
{5,19,31,59,61,71,83}, 704
"43460875"
"0"
Wrong
59.
{3,11,43,53,61,73,97}, 871
"20775579"
"0"
Wrong
60.
{3,7,11,29,31,53,59,89,97}, 994
"703917"
"0"
Wrong
61.
{2,31,37,41,53,83}, 945
"43515904"
"0"
Wrong
62.
{3,5,23,29,47,83}, 549
"1473403"
"0"
Wrong
63.
{11,13,17,41,47,79,97}, 857
"111166451"
"0"
Wrong
64.
{3,7,13,41,67,71,73,79}, 307
"75117"
"0"
Wrong
65.
{3,19,23,29,31,47,59,71,89}, 819
"1214043"
"0"
Wrong
66.
{2,7,19,29,37,41,59,67,73,97}, 682
"78329"
"0"
Wrong
67.
{5,23,41,47,61,67,97}, 894
"165378625"
"0"
Wrong
68.
{7,11,13,17,19,67,71}, 455
"980837"
"0"
Wrong
69.
{2,3,7,13,17,29,59,67,83}, 984
"27848"
"0"
Wrong
70.
{13,47,53,73,79,89}, 766
"22892417041"
"0"
Wrong
71.
{2,5,29,43,47,59,71,79}, 972
"596195"
"0"
Wrong
72.
{7,11,17,41,97}, 483
"197263759"
"0"
Wrong
73.
{19,23,37,47,61,67,79,83}, 239
"1827743"
"0"
Wrong
74.
{2,5,13,31,37,43,53,67}, 46
"250"
"0"
Wrong
75.
{11,13,23,53,59,61,79}, 886
"181616809"
"0"
Wrong
76.
{17,23,41,67,83,97}, 558
"1932062393"
"0"
Wrong
77.
{13,41,47,53,59,73,79}, 137
"505817"
"0"
Wrong
78.
{17,31,41,47,53,61,79,89,97}, 614
"14798417"
"0"
Wrong
79.
{7,11,19,31,37,59,61,89}, 273
"239723"
"0"
Wrong
80.
{2,3,7,23,29,31,47,71,79}, 662
"16399"
"0"
Wrong
81.
{3,7,17,23,47,53,71,79}, 911
"1362987"
"0"
Wrong
82.
{7,17,19,37,41,43,73,83,89}, 569
"1776481"
"0"
Wrong
83.
{3,11,31,79,89}, 631
"196686351"
"0"
Wrong
84.
{3,7,11,17,29,31,59,61,71,97}, 501
"49619"
"0"
Wrong
85.
{2,3,11,13,17,19,79}, 766
"33891"
"0"
Wrong
86.
{7,11,31,67,71,97}, 843
"873596647"
"0"
Wrong
87.
{2,3,5,11,73,79}, 81
"300"
"0"
Wrong
88.
{11,29,41,53,61,71,89,97}, 37
"4331"
"0"
Wrong
89.
{7,11,13,29,59,61,67,71,79,83}, 167
"27671"
"0"
Wrong
90.
{2,17,29,31,59,67,73,79}, 582
"403796"
"0"
Wrong
91.
{13,19,31,41,59,61,67,71,79,97}, 793
"7546009"
"0"
Wrong
92.
{3,5,13,29,31,37,41,73,83}, 96
"1665"
"0"
Wrong
93.
{2,5,29,37,67,83}, 726
"1468937"
"0"
Wrong
94.
{5,7,31,37,41,59,73,79,83,97}, 555
"423325"
"0"
Wrong
95.
{3,5,11,29,37,41,53,73,83}, 790
"226935"
"0"
Wrong
96.
{3,7,17,19,29,31,53,71}, 318
"41209"
"0"
Wrong
97.
{2,5}, 500
"100000000000
000"
"0"
Wrong
98.
{3,5}, 500
"450283905890
997363"
"0"
Wrong
99.
{2,3}, 900
"487487792008
3968"
"0"
Wrong
100.
{2,3}, 901
"494138717027
1576"
"0"
Wrong