programming challenge

Discuss how to write good code, break bad code, your current pet projects, or the best way to approach novel problems

programming challenge

Post by pretentious on Sun Nov 03, 2013 11:47 pm
([msg=78026]see programming challenge[/msg])

I've got 5000 random numbers separated by random letters. Add all the numbers together for the answer. Nuff said
Code: Select all
27w29r2v9u40q49j24x33n35r43f38q3z7m18k9m19v43l40i16y35a47r29k3m32a19a40g45r21m37x2b50g29q48j35i3m38o14a41c37d4u4v2j1u42s7f17w16k20t41d36j20x41l46w41o31t49o31p22e27h41h37o33f31q12z11w5g32l4h9s1h9x13h39k34y31w36j5j23w23j14i49i34x31w44s13n1d42u15a42p32e28z25i30i22d23f35n46h38r35m30y37h14t21r33e38k12y30a19n37g5u22c39m19a6k24t9x18m8j42q25i47q48r37w44s41q42i26v41o41a9o15e47t47v13u11f36y5i43n41o24p33a49g11t38k44p28r16q42e14o29q8s42k17u14k15a28g31a26c38z28e36v7f33r46s30c5r50m24j29f37x30o20c31o10o29l16d6d27m41v24b9n3e22a39r30i14z16m12r40v11a7q38z50y20e30g48g24w43z46l41e13p21s37d49j11t13w39b45p25j37w34o39h45q14l23n43j36h5t20y8u22u14r14k46t12c6t22a19e34c29p47h3k27k32z42x25t6t27r35b8p27c13l46e34p46v7h35q50b33k9a45n14p10x44b30t37s26r11p17l41d21f48f44m36j23x3y40h3x24y47m35h7i20x9q41s8l13q7n7j41c13s24t8s11m28i6r22x2b3r49a20l37m21u18f18b2m34h19f32n14p6d13z4a9h9g47h31m20v31l6j1k12r9h2v43s3m26o31k19i24b24z50i10p7l15b8n4p37u30f34c22p40h15n19k10t11m48e50v38b8e37e2g24d26j26d30z40h10p38v16v26s31n38o5b30b40o44s21h1o49o28i43c14c44p38q5p36j16j37k11t20x2u31q17f2l41s27u36w29a30q7u2u36o1z22i29e23g50s7y25i7u28j13u43l13f15o26j38a29b12y25q8r32g40x29z1z19n17j48g29x25l2k32a25w41i14m18z19j30m37z4a15o23i18d39n9x49z34x27m24m19x1l44y19t20v29u30g24f3u32w13c30c4r31o48u8s39d16n28i28l7b47d4g4u6n49k40j44n2i15c24e26h8h34j48v9b22a32z36z43x13y4j8n3l48x17e41w20y6x34x48c17u39n6m3i14b39a50m50n33b7t46s37h20x29w11p34x23c7z34b40m47r41o46k21k12w7b39f45g30g31m3u5z18g38n42p36v50m34b33l26j34w37x13n10n46v44r50p30s35x14e14m32s26e49w17c31u33j42z15n41g28f23p3x46l34o15y45e47d33c7s2k47g32v7r32v13j26s37i32k27h3b15i35s15b21f9m25z35x35k34w30z13a20b14q8u20i28q16v29k1w9u46c39l5x4m21r16a20i6z25i13d45o20g46w15l47a9w7i23s50d35v4k43l44r35a50z33v25y4p29g10y40o6i40w10n47e45u43u50e44t8u23o50u44b47i46b35s40o14w32h42i41k17v18i10p47w29m11m47j37d48c43q24s19f44v36m40d7h35x10i43o39c33f17p41f43i20k18p12v35w38g50k23h48q36g5a19c37l27n14k3j40y17e49l37w31r6a34c7h33u2c8y34g23i48l18o49i19w14x39r5d27g17v17v20u39o14f43a2m33v15z40e24x15d22o44n19u3n49s22z33w19g19r15j37v42o23c44l27q41l14u49e24u38d32b37k4s29p41b22z14e47j35p1i2v40v49h17e26h22u22n11k21h6f20s30c18f7i42n10j28b18a43r49y44n33e16g28z13h20o23z16k18z32a37v43k34f41f3l14o38l43o35k10l36m37d43u45t17v46y6x44s15w17r27m39j32i34w36b4l8c28p41j43x44r13u43y42t20t31d28z2p23q2a28q30e24k40q22i27v45a26o26u22a14x28c3a41a13j18c15c2u23o43j8o12j5s20u2p40h9x50r49i10g11m37o44d25v5t32f5p29c21j10r45t41n14n47b9i28c7u18j7h41h50l7f47a18h10f40q50f7m10t35g24u22w37b15w38h40t5v25y19y4u18v37e10q21k40q49v30h6i23y9q2b13k6x38f1t45l49p11w19d18e40t29f18k34v11t47j1j46x10p31b38c38l36x4z9t4e5l13s26x3i13m12o17e42z42m1a24l18n48g36x34p30c45r8q24o48v44v35d49n19a16q5x32h45k26j28v33r22n37x42l7t44u23x7q9r39r8d48j17m47g40z16j10l38r11b22m27v36u6d25n3b25j2u29o25v31x6p29s28n33q50v21k37g1u3p6q44x25p45b5g16o30i26r33t15n47e1l42q43b42p39f10s37k12w45w50d50q20c24n15g49g4s10f16i18l20t12u1u22y14i8b50b23m36f28w39y24b42j45m36z16u2m3o3d25l5t44e37e27j30e44j45d47e2z30x10e12s34a23e21b15n26y41j37r49j22q18k13i45j4r33c36z24g20x21h27o15c48v3n6z20f18x5h24v34g47k15a35d21i47r18g27i16z34s15t19q13l19k5g39u10c8r48m9e5g29e50c19v35r14t50x30c45i14p16w29g15t27f8n41p29n4m23d10v47i14p44i16l16n34g2a10x6t18m45y11m7p39g38h46n2u46a40t23q44p48w21n2v40b37i34m16n49s38t1g23q44m19a49d19n7o3a26o40k10i45i33k25h14w43b24z41i41k21s15c35z31w24s12x23g25b39a32j45r25t18n17v3q43l10n28i30j5r21h3y49e49i28q19s7d1d8u1y14a29e25h31p46u4n28j4p50g44k37m49n40z38p39k22n21q33q40b17q21x38l12a25h10e30y35n47d23k31a35b24m40k23a4g40g23y48v22q38q4f30l37f41u13o45p44i34o23k26n47e10y20f11i23w28v6b31b45q49w4x38u42u11r40n28j44w41j24a18q15b18d35k40z10a19d49b18h1a7p21h24w49v41j34w4z8r13q44s39n49y5e46a33m39d2l13a36a27f1w45f33a34t22n37t43u26x12k8y9p17a13l5c28w18v17x10n15k46s14n6m16y49p40v49l47k16p1r17b11s14n25b46j3f19h47y37i17n36w10x7f37n50s18k31r19m18k40d25h49e33s24s12j6e14n24j11u28k9y29l26v2l3t14g13z19m49d22g45i2h17j6l32i47r5m1d49v11p21j18t24j8k36h33m6b1c1x35q48i26m19m31m50v12i9j45o21q23o32i39p20h1d50a13a19v14z8q17n32t44t9i35w48j29z14e29t19l35u38b13m26b32o39l47v11s8b26i3b42i49c13s14k26j33k41h36y33p32d34g21a36m5m39g31n4s38n11e42v3g13i15u29f22g10j5i25m46k23b22j31i13c42a9m12f44x22k16i28e30t8p5r19o27u22q35r50y39u50z4g38i41s40a27j38m34e47f24k5i31a29h28g32r6l37d14o26w47b15u15m24i44c22n32q11l1v29r8w36c2r12f21b47j10h43z32k7g50x7p35i19o21l11t19q19x40z28q16b11q42f10j19t22x19d27j35l43o10b16p1g10y40w12h23m30a46n44r17y46v38k28y27d20c1p8a11a32r42q29y15b31e24v29q15d21r41h33s14i19k11h41j13h24b27y11y26z4y3e5j24y35f36v8c48d33h31b48h7e48a20f6k28p8t11h22k39u21b10d8h7u23t13o16q41r11b14q43u2c6u12w44r39y14u43w7j4k21b29o10k42l5g12q17w42q50f34b35d41b50j29z7k26q41m10m18e46j18e6s47z14l23e38z14w12k14z9t48i8g44e25j34h17t44s29y24x33y29v41o19e48m11p2l17n32p37l10z49c45i12x37w29t26z32s15x1c45v19v45u15d15t8f3j29g1b47i37r8g24y47w23w46l5v48u16f26g7m3q22t44n24n34b29i49b6i50y30r42n47a48a49t10z17o25t16u25k45f38y2g38j42z14r45b30u2c22d17a32v35z16m19v10a7b50q5u23t8u11s37r50y4a49e33f1h32y24p2u44s48r24m43q20i24n46v29h6q12a5g29g20i40n44r18x5q29u6i47g3f34l6l6t24v18c36i13r34v25f47d5h14a17r15p50r8i30e16o1y21t20d30k12l35y32u12m26d29u10b3b42d27f24n16i48j28g16a36k24x32h33r3g20s38d48f21v18s35i35t28k15p44g8x28q13a3e30z32b8f37g22q18h45w20g30i18c24i36d21h2g11b24o30q42c17l30r16u9o41z8d34h6x24a5i13l25g45a6d40x11u40h27q1u46i45o1p9k33l44c34n21h10m31z41b45o14r29m44n6h18i1i5f28x5b5h32q15w34h42z14j32a5t14n10l2v43a21x3x25d8n29s25r41f29s40s48i18p3v5t21u48j3d35k47c30x36q18k50u33c39e27f36y24z47y41u47s2f24k15w35i2a19b3y7x8g4w6e37r28l16o37i29y49r24w26d6o22k38u23w21v43h47f2y28z33p15o33t3r16o17w13e11y36h13w32k29i1o37l27q32p17d38a42b27s37b38x12w36k50b29k47k30t2l19p3q46s47p21z49m42s11a15a17i18e7u36t47b32d26x17k39v50p34j41s16v12f38s11q11i38k24y28n3t16g38o44w31u13y39d36c33y38o48o44s40a31y36w21q18t48p35q3p30b35c9j17l31d43r1k37m50k16g9c18g35l38e17k37a33t36w16q14e7r11y27l20u26p7m19o36s33k26n37c31g28z31o12y1c1t30n33j18s30d47b2f46r30e26g4v17m32m30x25c19e38d31n27m36n11j47x37r27q35x44p16g11r39o47b28e29u13g18g5n11z16e48u2l2r16u42n9j12l15m32b13y7k26x46q43n14t30j43e33j5t41w9l42c1v33b2n21v6t27l22f13j29u31l34p12j26i16d33k45w9x43u45i5y31v4u29i32k21w13j34x8f6z28z25x6e14v50w17u40m14y19r11j21l43z24f13m32p18d25q19o45m43y41q13s14n6j36c29f18f14x45d28y39m36a25j43v34r10a38l12d29b22o43l31c33a30w17v29c42b41d34a1o12q35u36b21g36g48z42o20k21i17w34m14w39y40p43l42v20h6k46d4g18w9p11z23s24y2i38d47z49t37h2f46l13w16i15g26s49o27a38r21h30i11f13t9y46k19q37s35g16u49f17k2k41n27s10l42h5e49t18d32t4d21o37q38m47u13k35a19w39j25o23s21r49x8s25s48e42d19x44e29e32k14f21s42a49d2n24f24b22e11l39x1g10a6u8z45b7k2x38e28o32p6x7q36q14d9u18w43j40v28a47r34v15z5v14r24r8n25q35s33d46b48o44g39k4w41f34w48n37y32y35k8d7z10e40t7p36r3e25e32y45w15f19n11f37w19o21s34s32i50i12x24f26m19b37y29y44u44w2g36i32s8z38s12f42y38e8a21o1q16t15p46n14h28c44j16f11v6h34h33i4g19x50g47b26l11v40b15f40n21g44p25f28d40e2p40k35a31v34z34h23g48h22p3k36k33v37a4g16h50w40k1u20j4a9l28m11y14w29q5f31j38g12e45w44j5k13l16b35m41s43o6r4o10w16h18p48f27u29u17m11j49p39k29a37w45p31m33h46u17k20c7p12l15u23o17d41p43c38c36g7s40a7b41c14m48e43p10i10w9j14z39u1q9c2j30c46l37t33j29e39k42j8l46u7f17y10s26h33q1z5v14a47t47d7k20y34z37p49c3g17j5p35d13n48i3z33p19y18a50j4f50q46y17l3t8d28l4m22f14z43m24u4b15c49p1b2w35c39e50b8a8m46r35j18y19y48d29c4g42q24m31k21y22z27k49z41m27x29q47j12x21z24b12i30d50n37p32i7w9j43g36b10z36j21s50r2r11w37f21p49w37e18k46a29b23v19i25r15q33c7f3n48o11o17c27b22l19l14u26p28u44l35i18t30t15k35z31i40s16l2m30o18x40t8c40l32w41x39x49w24q33k22j40t38w9c5k18c50q49n49i14q17h28j22e33i47n34a38n43h9c7n24j42s18t35k34g4l10b26s29j18w16u2u3z41b11a16h8z19i18y19m12u3o26f18i15v43e19v16a6z14v13m19w2u26f21o38m39q19e40h38i10b36t12m1k50h4x47s13g38i14k19d36v30q1m48s44g21x48h12w36b36x41m10u47c45f1w50j35i38m25m9b36x2e48h23s45x43z8y18v6i35h41x24h44h37x31r15t3b38z32e16o1i30l49w9v5v46k50v25n4s30t7y50h42a20w15d22v39i43i18l37k37d48j23p17v36h36y32z16u8p31h23q4p25v7d28s50y11f42d45x25a24j14q4m25n22s35h20g50c20e48l33b34e47z14h2v2o19x27t42w5o33a29p23q49c46t25g29t36x16y48f44o30u38y19x40y47j21w22w27g31d23u7z9t29o45n44g29r14y7b47t50o38r6y26n6y25q12u40g19v43v44v49r23h44o35k23h28n9e32e7x31f43i48j39h34c12j21f48n13h26j14u18q16m12q26u29p13b47f31f32a50u8f46v14a35q25p48s25f40j11r40g18f23n14z24w9e7b40s44w34p29f1t3x2p22q44l15f19u37i28t5l5s3a28s4j42c38i29e47a43v20h22g20d27f6v33z16l43f5x8v33a24n32u45n1s14a28e48x12b19p19l39k11e18f10a20o23b6u17n8t39f14f43p14f20l14p18b6o26j17v43m30f35h37m16n38g31y48d49y15p35h3x47m38y34x34v14w33q12z2z49r49x38b7g39m44d26d44z22s1n8v43h48l48y27f37q42h3l33g8g36p28w10l23j40y6x21b11z23d44x18w16r12p39n10o27n48a50a15i48r15y15a39c2i20b16n7r37t49l33f3m31h34v40n7b26b40k19r47d12q43e7t2w39m13t23s17j2u47a17a8o41c33a49o4z19i4c9g40w5m23t39t5z5c46n18r22p39d38k6l2x11l49y35z12d28j26b43y42i50k26w39i15e3g12n43v14x44u30y23c13j24a5c48j22i8b42t36q41e47h16i50x26s25n25v30v3z33j11h13x9o28y22p44o22y28d5v33f48p30s5l33m42i39a44j39r44z8w8e46p41t43z50i43q35j15l50o21k45l37t42o22m29y2x45a38t38u6y1n3d30o15b50j24q12j36k9l11o14u18w9v33w5p1a23k30y10a46f41k34d30s45p1u33n18l49s7d25i43i35z1k6v33y9y4r24q1c49c35n1j27p8d46d46x24k19n30b34f48g10o34h44q9t16w37z32r5p45x39g35w45u2c35y38z8z12g17w14h26o33n4e34v14w20r38l1m20l13u44z50f21n1c42i41v27b33l12v38u48y49r40k44w15b11e27i16q5b8y11s46a2l16y42k2v8k24z42e4b10f1u17j4w39j34s31o27p26h40b17o27v26g49h30d40g20z11q7s30o12a16r30q33d39d43s7e17o33t33i11r20z10a49k9g26y46q35a43y32v17q30u43q26o49e47v10o19m15d24d31d4z27q27z13i27d15l37u32o41c41u49r3n47u28i6e28w37o39e13k46h3j43n4e2t31g26c6i44h4s34s33j25b47t40z18q10q6f43y22h43r22o4c48h25v39o35l2j26o16x26x32i3p6z35z5v29w1q8m46b24t46n30c49p4n27x48m44a45m45j9q35q35b47u48o4j23q20v36o5m10a15c39j30d32n22o30b13p11v42z41c2q26a21c14m45s36g40w22r39q26e5y41h20m38d17s11z22l49u28x20q47r42b14p33l32w13z40u12p33i22b17w46b32f3v12u40b44q39x25w34i40j27v31b10v46i46g10h11e21p31q31a18a50n7p23h23d32r10r23e20v4k49r17s39l39a45l3t3i45h1g10f9m10p21x28i21p43l12t8s36c48o33v35b29i21h48e44c48u47d14r8j25t26a40i2e47v24z13u30j7v17c19o43b6t19l32e10x18x26q35l4n34g46r32i14n33d15z33j33n30z24t10l29m7y25p32y5u37r8e25v23o49n33p42j5r46t37k4k10o35q1u48r49z20o41m5o3s15u41u27y6x40n25e28b39q17o43w6v27p16t30b48i46y20d32w6y41j11n3u25l4n12h27y39i36p5n11r16p47w37c45r2c2i34t31k9v33i43f15o45e38j23f29t45m47v3i4h35p23e5t12j10j29j29s39t50z39q17j8d35r40o11o44q19e24r46b35x4b14a36s30g39d11h15n15f22u17w49y29d45y26s2n3d10n12q49q23i40l46v13f44w12h34l35l10v37e22e17z22a1n39v38d29i35k38v45k28q5d48y8m16w47k40a45e20k40i20i38i12x47v50c50y24k46a1j23l14t1g29y4f38b14p9d25p20a38e24p23q17b11e17e9q14o30n15t43l6n23m19e9b9j2s4o30m46m39v27a49g37y10b1e10p50z12g10r31n1w2r20k38i3d12p39j27z15a10i49u17j43i50j46v29q25b25v37l48m36i26c33m50v15z50f34o44y14t50s46h50n11y50p31m24j4n50q41b22p5k45m23m28z30r7p16g10n9x20w33o20s2x37o9k25f13v25a2a27p3m30t39e41n21s3d40b36s6i37l39d19h17x43p17d38q39r28c45l1k39p28b5k17k25d32e5e31j38n14g18y11w50d41u23o23x31e48y23w47l50t47h37t21p39p2g12h32d31q29u41z24c6v30m29r19m25o15f18t9p30x31f27g21c20c13u2m41o16o48n16n28u33c9u16g4g28k13f46w45n24u31c16v33x50c12g9s24p3p15z44n12y44c33f34g32a30k31i34a19m39n50l48f10a43f47i35u37t27r5z43k18c8k2u32o35n17m19y31o30m27a32r35y16a39e38h23d24w14d18c16v6h1q12i49n26k8a17y14a11f12y38j28v44m44i38e6e49a30n34h50x41g30j34o2j4y31g21r44h37u19x5y35h31y16a24g28x47e1i14j9k43k4e50j50z25q45p8k31d39b50a3f50k25e29s7o20f46u49e48x6r5s13i16l47m30q2c1l18k36o35u41u5f43u14y32p13j4g3u32m41g3i15h28f35f24w40s31e4i27d27g6j7p5j50c44l30g22f5b10n32r23b18o7q34w39h42k16k21l18u42u35b10k37f25q23t8z31f2u16d16a20j36i7b28a8m46n44n35o8j46u15o3y3w25n49i35v18a47d10q16k7q1a3t34r14c13x14c29s41b39s32q33m8s22k32m14h17w11n31w27d25k34g24u19r24g17u43p12x12w11o7h9m30s25e17o37j9j13p43v9o27c29f37r8q32t33p15h32p26y19d10q41n30e15z50w50r49w26k24x12f43p37l14a2z48c28f46h8k16q25b50x37k33p2d47h50m34t22a10e40k2j10u29q20p7n8t20q21x5h6o36a1h49f34h18f7b33w7x37h41g50n11n2j45a15s24n10u8i5b7t14y47v31q10w34w49l28l9z8c36c47n4z39e15y48y29u38b50u27h41s41g20o19b46p45r27w48m37h38u14y8h28m27c12j37c6d38c9x34z22b29n28f43t9q46e10d37d21u26z43b38c22u27x36a27j6o37e28e15y22j36l43d47c8f4j27m6t32y18v7y14o28j38f35k14h42c4w36q41f34j18g25j36b13g33g50a11t32m45q34r38q45p29j33a41y49s1f17k50n14f43l14c25q23v41q38w7h29w43x9o29b7o46s18f3v45i24s42b9s18x49l26y37y49t24g33r8p9y39x27v36s20j27r19y39t46r33k3x13o22r15y16v19t40u29x45m36v44k31j19l1d17j33z26r24h2i12l46t26d41d10x13u27e44s19a7h46f45z34d27z28r50p19f28a14l3p12l47r37f19i47a12j13z13n50x22m47k8v5o17l36v49o48l23s8x42d1g8t44y20v26y33k32j47c50j42h13y23o30t22k29s37d8v25s33s36f11e6h36f39e30x25n16f16t8p9x16t17s22n1j28i1o47a9e25h19u19n33n43f9c1v35k39g5x6c9d41k8y48f1o29p4f24o44r38t47s10u28n41c43l16f39e50z9d22d23v24s42o19h45s31z44s9t24e10e48n18b1l37e37m35l31v39w2o36q23f32i33p22k27y28d47z8d46z8r46v14h45w15y4s18s33f20a33d44l46c35z45z2v14p28l49u5l44u24u4t22f36w44p50o25l40x49j11z33p50s41d9p11r5x44c19c10q44l39s40z41n48w11i36s14o9u26x3h37f9v30w43x43u13j2u36q41l42h23d35g24s29w29y8s30b5e5k34f23n11k37t25a45v4k25m39j13t27i27c17h17a2c23q36w5x22h34g43r34e31n38k15u33i4a25q35n16v7o41w23q8j15i33i6r22o9w28z21t22h8m11v19w32q20e47s15h38o6i29v33l9g31o25p17i6l13a12a22v22g39w43w25u38h15h9t31f26s9w5v39k35z18f28u38x25k47a35q8j3m12o13t36x24i21a29o28e48d4v36t2h39v45t23w44a29u28b25h27t20z27r41b13b39b44q50m8v25c16y27q45o42z11n11w41g46y23g4k15b45h33i43t30s20a48c27b50d36f21p42b17u9e45o11d4v22o33w24q15t31z30o47b42m47y1h43w3b39x44j23h18l22t46v34v29b48u39q22o27x5q43i30x41v9k35y30j32x3s29x21x30l33j36p18o46b9k15f29o11u25i4t9h21i25a48g49q19p41e15b34j30u27x23u44k8m27y15u14n24u15v1q2w48x4d39d43m27w16g38w44k35a29c11p43d46n15z48d9a38o20j38g23m14f27h19q4v10y5u41x27n15w24j29h45x17k42a37z40c33h18y3f40x48p8c25u20d37w22d20o2g21c41z34k16z20u22s8v34x3c15f49j8x4n13y23n10j37z19x39g43j48q21q13f7a35v31f21q28h42a48y48j10d49g28m42i36s14x33v3f29t18a6p1f12h29g17a45g48w3t47l26h30l34z20w22q24h29x34w19r17r1v33t44m27c45g20u10l42y31o32a1i34z1u26c17x13r33v37d28u24v48y19t21k35i33v39y31c19t22k14p14m30o50m43j46x20r20p11q6z29y35y28v36y16r50y7y47c31p20t16p32y42c28r31u1a9i26k43x32t12o28p32r3j22n41k8a38s2x9p9w36u35p23s4y23u11u46h32g16l18u45d18t15e13e31s41l1a49l44f12n17v1e38n23d18d3e40a37h34w23l9f45c5c33g44e3g47u30o50l2k36w45y8r39z46n28m50o46q11b40u36x5u4v42x16l48r4g5n10p43o23p41g44u26t20x18b47a20x5i50y20w19u23p50d33c15v46z43z7s1s36f47a13g7w17f35p26m42h27h22p23e23m42k24p28l20q28w26b34m32l37c15e49d43a30i48y25d3z49y41k47n9d18d46s5r45c50q7k43f44k49v34f43j7l21b14s24o35v12x37k33g39y29t5i34h47

To generate this, i threw a python script together in like 5 minutes and havn't even tested it haha but yeah, knock yourselves out
Goatboy wrote:Oh, that's simple. All you need to do is dedicate many years of your life to studying security.

IF you feel like exchanging ASCII arrays, let me know ;)
pretentious wrote:Welcome to bat country
User avatar
pretentious
Contributor
Contributor
 
Posts: 573
Joined: Wed Mar 03, 2010 12:48 am
Blog: View Blog (0)


Re: programming challenge

Post by hellow533 on Mon Nov 04, 2013 12:01 am
([msg=78027]see Re: programming challenge[/msg])

pretentious wrote:I've got 5000 random numbers separated by random letters. Add all the numbers together for the answer. Nuff said
Code: Select all
27w29r2v9u40q49j24x33n35r43f38q3z7m18k9m19v43l40i16y35a47r29k3m32a19a40g45r21m37x2b50g29q48j35i3m38o14a41c37d4u4v2j1u42s7f17w16k20t41d36j20x41l46w41o31t49o31p22e27h41h37o33f31q12z11w5g32l4h9s1h9x13h39k34y31w36j5j23w23j14i49i34x31w44s13n1d42u15a42p32e28z25i30i22d23f35n46h38r35m30y37h14t21r33e38k12y30a19n37g5u22c39m19a6k24t9x18m8j42q25i47q48r37w44s41q42i26v41o41a9o15e47t47v13u11f36y5i43n41o24p33a49g11t38k44p28r16q42e14o29q8s42k17u14k15a28g31a26c38z28e36v7f33r46s30c5r50m24j29f37x30o20c31o10o29l16d6d27m41v24b9n3e22a39r30i14z16m12r40v11a7q38z50y20e30g48g24w43z46l41e13p21s37d49j11t13w39b45p25j37w34o39h45q14l23n43j36h5t20y8u22u14r14k46t12c6t22a19e34c29p47h3k27k32z42x25t6t27r35b8p27c13l46e34p46v7h35q50b33k9a45n14p10x44b30t37s26r11p17l41d21f48f44m36j23x3y40h3x24y47m35h7i20x9q41s8l13q7n7j41c13s24t8s11m28i6r22x2b3r49a20l37m21u18f18b2m34h19f32n14p6d13z4a9h9g47h31m20v31l6j1k12r9h2v43s3m26o31k19i24b24z50i10p7l15b8n4p37u30f34c22p40h15n19k10t11m48e50v38b8e37e2g24d26j26d30z40h10p38v16v26s31n38o5b30b40o44s21h1o49o28i43c14c44p38q5p36j16j37k11t20x2u31q17f2l41s27u36w29a30q7u2u36o1z22i29e23g50s7y25i7u28j13u43l13f15o26j38a29b12y25q8r32g40x29z1z19n17j48g29x25l2k32a25w41i14m18z19j30m37z4a15o23i18d39n9x49z34x27m24m19x1l44y19t20v29u30g24f3u32w13c30c4r31o48u8s39d16n28i28l7b47d4g4u6n49k40j44n2i15c24e26h8h34j48v9b22a32z36z43x13y4j8n3l48x17e41w20y6x34x48c17u39n6m3i14b39a50m50n33b7t46s37h20x29w11p34x23c7z34b40m47r41o46k21k12w7b39f45g30g31m3u5z18g38n42p36v50m34b33l26j34w37x13n10n46v44r50p30s35x14e14m32s26e49w17c31u33j42z15n41g28f23p3x46l34o15y45e47d33c7s2k47g32v7r32v13j26s37i32k27h3b15i35s15b21f9m25z35x35k34w30z13a20b14q8u20i28q16v29k1w9u46c39l5x4m21r16a20i6z25i13d45o20g46w15l47a9w7i23s50d35v4k43l44r35a50z33v25y4p29g10y40o6i40w10n47e45u43u50e44t8u23o50u44b47i46b35s40o14w32h42i41k17v18i10p47w29m11m47j37d48c43q24s19f44v36m40d7h35x10i43o39c33f17p41f43i20k18p12v35w38g50k23h48q36g5a19c37l27n14k3j40y17e49l37w31r6a34c7h33u2c8y34g23i48l18o49i19w14x39r5d27g17v17v20u39o14f43a2m33v15z40e24x15d22o44n19u3n49s22z33w19g19r15j37v42o23c44l27q41l14u49e24u38d32b37k4s29p41b22z14e47j35p1i2v40v49h17e26h22u22n11k21h6f20s30c18f7i42n10j28b18a43r49y44n33e16g28z13h20o23z16k18z32a37v43k34f41f3l14o38l43o35k10l36m37d43u45t17v46y6x44s15w17r27m39j32i34w36b4l8c28p41j43x44r13u43y42t20t31d28z2p23q2a28q30e24k40q22i27v45a26o26u22a14x28c3a41a13j18c15c2u23o43j8o12j5s20u2p40h9x50r49i10g11m37o44d25v5t32f5p29c21j10r45t41n14n47b9i28c7u18j7h41h50l7f47a18h10f40q50f7m10t35g24u22w37b15w38h40t5v25y19y4u18v37e10q21k40q49v30h6i23y9q2b13k6x38f1t45l49p11w19d18e40t29f18k34v11t47j1j46x10p31b38c38l36x4z9t4e5l13s26x3i13m12o17e42z42m1a24l18n48g36x34p30c45r8q24o48v44v35d49n19a16q5x32h45k26j28v33r22n37x42l7t44u23x7q9r39r8d48j17m47g40z16j10l38r11b22m27v36u6d25n3b25j2u29o25v31x6p29s28n33q50v21k37g1u3p6q44x25p45b5g16o30i26r33t15n47e1l42q43b42p39f10s37k12w45w50d50q20c24n15g49g4s10f16i18l20t12u1u22y14i8b50b23m36f28w39y24b42j45m36z16u2m3o3d25l5t44e37e27j30e44j45d47e2z30x10e12s34a23e21b15n26y41j37r49j22q18k13i45j4r33c36z24g20x21h27o15c48v3n6z20f18x5h24v34g47k15a35d21i47r18g27i16z34s15t19q13l19k5g39u10c8r48m9e5g29e50c19v35r14t50x30c45i14p16w29g15t27f8n41p29n4m23d10v47i14p44i16l16n34g2a10x6t18m45y11m7p39g38h46n2u46a40t23q44p48w21n2v40b37i34m16n49s38t1g23q44m19a49d19n7o3a26o40k10i45i33k25h14w43b24z41i41k21s15c35z31w24s12x23g25b39a32j45r25t18n17v3q43l10n28i30j5r21h3y49e49i28q19s7d1d8u1y14a29e25h31p46u4n28j4p50g44k37m49n40z38p39k22n21q33q40b17q21x38l12a25h10e30y35n47d23k31a35b24m40k23a4g40g23y48v22q38q4f30l37f41u13o45p44i34o23k26n47e10y20f11i23w28v6b31b45q49w4x38u42u11r40n28j44w41j24a18q15b18d35k40z10a19d49b18h1a7p21h24w49v41j34w4z8r13q44s39n49y5e46a33m39d2l13a36a27f1w45f33a34t22n37t43u26x12k8y9p17a13l5c28w18v17x10n15k46s14n6m16y49p40v49l47k16p1r17b11s14n25b46j3f19h47y37i17n36w10x7f37n50s18k31r19m18k40d25h49e33s24s12j6e14n24j11u28k9y29l26v2l3t14g13z19m49d22g45i2h17j6l32i47r5m1d49v11p21j18t24j8k36h33m6b1c1x35q48i26m19m31m50v12i9j45o21q23o32i39p20h1d50a13a19v14z8q17n32t44t9i35w48j29z14e29t19l35u38b13m26b32o39l47v11s8b26i3b42i49c13s14k26j33k41h36y33p32d34g21a36m5m39g31n4s38n11e42v3g13i15u29f22g10j5i25m46k23b22j31i13c42a9m12f44x22k16i28e30t8p5r19o27u22q35r50y39u50z4g38i41s40a27j38m34e47f24k5i31a29h28g32r6l37d14o26w47b15u15m24i44c22n32q11l1v29r8w36c2r12f21b47j10h43z32k7g50x7p35i19o21l11t19q19x40z28q16b11q42f10j19t22x19d27j35l43o10b16p1g10y40w12h23m30a46n44r17y46v38k28y27d20c1p8a11a32r42q29y15b31e24v29q15d21r41h33s14i19k11h41j13h24b27y11y26z4y3e5j24y35f36v8c48d33h31b48h7e48a20f6k28p8t11h22k39u21b10d8h7u23t13o16q41r11b14q43u2c6u12w44r39y14u43w7j4k21b29o10k42l5g12q17w42q50f34b35d41b50j29z7k26q41m10m18e46j18e6s47z14l23e38z14w12k14z9t48i8g44e25j34h17t44s29y24x33y29v41o19e48m11p2l17n32p37l10z49c45i12x37w29t26z32s15x1c45v19v45u15d15t8f3j29g1b47i37r8g24y47w23w46l5v48u16f26g7m3q22t44n24n34b29i49b6i50y30r42n47a48a49t10z17o25t16u25k45f38y2g38j42z14r45b30u2c22d17a32v35z16m19v10a7b50q5u23t8u11s37r50y4a49e33f1h32y24p2u44s48r24m43q20i24n46v29h6q12a5g29g20i40n44r18x5q29u6i47g3f34l6l6t24v18c36i13r34v25f47d5h14a17r15p50r8i30e16o1y21t20d30k12l35y32u12m26d29u10b3b42d27f24n16i48j28g16a36k24x32h33r3g20s38d48f21v18s35i35t28k15p44g8x28q13a3e30z32b8f37g22q18h45w20g30i18c24i36d21h2g11b24o30q42c17l30r16u9o41z8d34h6x24a5i13l25g45a6d40x11u40h27q1u46i45o1p9k33l44c34n21h10m31z41b45o14r29m44n6h18i1i5f28x5b5h32q15w34h42z14j32a5t14n10l2v43a21x3x25d8n29s25r41f29s40s48i18p3v5t21u48j3d35k47c30x36q18k50u33c39e27f36y24z47y41u47s2f24k15w35i2a19b3y7x8g4w6e37r28l16o37i29y49r24w26d6o22k38u23w21v43h47f2y28z33p15o33t3r16o17w13e11y36h13w32k29i1o37l27q32p17d38a42b27s37b38x12w36k50b29k47k30t2l19p3q46s47p21z49m42s11a15a17i18e7u36t47b32d26x17k39v50p34j41s16v12f38s11q11i38k24y28n3t16g38o44w31u13y39d36c33y38o48o44s40a31y36w21q18t48p35q3p30b35c9j17l31d43r1k37m50k16g9c18g35l38e17k37a33t36w16q14e7r11y27l20u26p7m19o36s33k26n37c31g28z31o12y1c1t30n33j18s30d47b2f46r30e26g4v17m32m30x25c19e38d31n27m36n11j47x37r27q35x44p16g11r39o47b28e29u13g18g5n11z16e48u2l2r16u42n9j12l15m32b13y7k26x46q43n14t30j43e33j5t41w9l42c1v33b2n21v6t27l22f13j29u31l34p12j26i16d33k45w9x43u45i5y31v4u29i32k21w13j34x8f6z28z25x6e14v50w17u40m14y19r11j21l43z24f13m32p18d25q19o45m43y41q13s14n6j36c29f18f14x45d28y39m36a25j43v34r10a38l12d29b22o43l31c33a30w17v29c42b41d34a1o12q35u36b21g36g48z42o20k21i17w34m14w39y40p43l42v20h6k46d4g18w9p11z23s24y2i38d47z49t37h2f46l13w16i15g26s49o27a38r21h30i11f13t9y46k19q37s35g16u49f17k2k41n27s10l42h5e49t18d32t4d21o37q38m47u13k35a19w39j25o23s21r49x8s25s48e42d19x44e29e32k14f21s42a49d2n24f24b22e11l39x1g10a6u8z45b7k2x38e28o32p6x7q36q14d9u18w43j40v28a47r34v15z5v14r24r8n25q35s33d46b48o44g39k4w41f34w48n37y32y35k8d7z10e40t7p36r3e25e32y45w15f19n11f37w19o21s34s32i50i12x24f26m19b37y29y44u44w2g36i32s8z38s12f42y38e8a21o1q16t15p46n14h28c44j16f11v6h34h33i4g19x50g47b26l11v40b15f40n21g44p25f28d40e2p40k35a31v34z34h23g48h22p3k36k33v37a4g16h50w40k1u20j4a9l28m11y14w29q5f31j38g12e45w44j5k13l16b35m41s43o6r4o10w16h18p48f27u29u17m11j49p39k29a37w45p31m33h46u17k20c7p12l15u23o17d41p43c38c36g7s40a7b41c14m48e43p10i10w9j14z39u1q9c2j30c46l37t33j29e39k42j8l46u7f17y10s26h33q1z5v14a47t47d7k20y34z37p49c3g17j5p35d13n48i3z33p19y18a50j4f50q46y17l3t8d28l4m22f14z43m24u4b15c49p1b2w35c39e50b8a8m46r35j18y19y48d29c4g42q24m31k21y22z27k49z41m27x29q47j12x21z24b12i30d50n37p32i7w9j43g36b10z36j21s50r2r11w37f21p49w37e18k46a29b23v19i25r15q33c7f3n48o11o17c27b22l19l14u26p28u44l35i18t30t15k35z31i40s16l2m30o18x40t8c40l32w41x39x49w24q33k22j40t38w9c5k18c50q49n49i14q17h28j22e33i47n34a38n43h9c7n24j42s18t35k34g4l10b26s29j18w16u2u3z41b11a16h8z19i18y19m12u3o26f18i15v43e19v16a6z14v13m19w2u26f21o38m39q19e40h38i10b36t12m1k50h4x47s13g38i14k19d36v30q1m48s44g21x48h12w36b36x41m10u47c45f1w50j35i38m25m9b36x2e48h23s45x43z8y18v6i35h41x24h44h37x31r15t3b38z32e16o1i30l49w9v5v46k50v25n4s30t7y50h42a20w15d22v39i43i18l37k37d48j23p17v36h36y32z16u8p31h23q4p25v7d28s50y11f42d45x25a24j14q4m25n22s35h20g50c20e48l33b34e47z14h2v2o19x27t42w5o33a29p23q49c46t25g29t36x16y48f44o30u38y19x40y47j21w22w27g31d23u7z9t29o45n44g29r14y7b47t50o38r6y26n6y25q12u40g19v43v44v49r23h44o35k23h28n9e32e7x31f43i48j39h34c12j21f48n13h26j14u18q16m12q26u29p13b47f31f32a50u8f46v14a35q25p48s25f40j11r40g18f23n14z24w9e7b40s44w34p29f1t3x2p22q44l15f19u37i28t5l5s3a28s4j42c38i29e47a43v20h22g20d27f6v33z16l43f5x8v33a24n32u45n1s14a28e48x12b19p19l39k11e18f10a20o23b6u17n8t39f14f43p14f20l14p18b6o26j17v43m30f35h37m16n38g31y48d49y15p35h3x47m38y34x34v14w33q12z2z49r49x38b7g39m44d26d44z22s1n8v43h48l48y27f37q42h3l33g8g36p28w10l23j40y6x21b11z23d44x18w16r12p39n10o27n48a50a15i48r15y15a39c2i20b16n7r37t49l33f3m31h34v40n7b26b40k19r47d12q43e7t2w39m13t23s17j2u47a17a8o41c33a49o4z19i4c9g40w5m23t39t5z5c46n18r22p39d38k6l2x11l49y35z12d28j26b43y42i50k26w39i15e3g12n43v14x44u30y23c13j24a5c48j22i8b42t36q41e47h16i50x26s25n25v30v3z33j11h13x9o28y22p44o22y28d5v33f48p30s5l33m42i39a44j39r44z8w8e46p41t43z50i43q35j15l50o21k45l37t42o22m29y2x45a38t38u6y1n3d30o15b50j24q12j36k9l11o14u18w9v33w5p1a23k30y10a46f41k34d30s45p1u33n18l49s7d25i43i35z1k6v33y9y4r24q1c49c35n1j27p8d46d46x24k19n30b34f48g10o34h44q9t16w37z32r5p45x39g35w45u2c35y38z8z12g17w14h26o33n4e34v14w20r38l1m20l13u44z50f21n1c42i41v27b33l12v38u48y49r40k44w15b11e27i16q5b8y11s46a2l16y42k2v8k24z42e4b10f1u17j4w39j34s31o27p26h40b17o27v26g49h30d40g20z11q7s30o12a16r30q33d39d43s7e17o33t33i11r20z10a49k9g26y46q35a43y32v17q30u43q26o49e47v10o19m15d24d31d4z27q27z13i27d15l37u32o41c41u49r3n47u28i6e28w37o39e13k46h3j43n4e2t31g26c6i44h4s34s33j25b47t40z18q10q6f43y22h43r22o4c48h25v39o35l2j26o16x26x32i3p6z35z5v29w1q8m46b24t46n30c49p4n27x48m44a45m45j9q35q35b47u48o4j23q20v36o5m10a15c39j30d32n22o30b13p11v42z41c2q26a21c14m45s36g40w22r39q26e5y41h20m38d17s11z22l49u28x20q47r42b14p33l32w13z40u12p33i22b17w46b32f3v12u40b44q39x25w34i40j27v31b10v46i46g10h11e21p31q31a18a50n7p23h23d32r10r23e20v4k49r17s39l39a45l3t3i45h1g10f9m10p21x28i21p43l12t8s36c48o33v35b29i21h48e44c48u47d14r8j25t26a40i2e47v24z13u30j7v17c19o43b6t19l32e10x18x26q35l4n34g46r32i14n33d15z33j33n30z24t10l29m7y25p32y5u37r8e25v23o49n33p42j5r46t37k4k10o35q1u48r49z20o41m5o3s15u41u27y6x40n25e28b39q17o43w6v27p16t30b48i46y20d32w6y41j11n3u25l4n12h27y39i36p5n11r16p47w37c45r2c2i34t31k9v33i43f15o45e38j23f29t45m47v3i4h35p23e5t12j10j29j29s39t50z39q17j8d35r40o11o44q19e24r46b35x4b14a36s30g39d11h15n15f22u17w49y29d45y26s2n3d10n12q49q23i40l46v13f44w12h34l35l10v37e22e17z22a1n39v38d29i35k38v45k28q5d48y8m16w47k40a45e20k40i20i38i12x47v50c50y24k46a1j23l14t1g29y4f38b14p9d25p20a38e24p23q17b11e17e9q14o30n15t43l6n23m19e9b9j2s4o30m46m39v27a49g37y10b1e10p50z12g10r31n1w2r20k38i3d12p39j27z15a10i49u17j43i50j46v29q25b25v37l48m36i26c33m50v15z50f34o44y14t50s46h50n11y50p31m24j4n50q41b22p5k45m23m28z30r7p16g10n9x20w33o20s2x37o9k25f13v25a2a27p3m30t39e41n21s3d40b36s6i37l39d19h17x43p17d38q39r28c45l1k39p28b5k17k25d32e5e31j38n14g18y11w50d41u23o23x31e48y23w47l50t47h37t21p39p2g12h32d31q29u41z24c6v30m29r19m25o15f18t9p30x31f27g21c20c13u2m41o16o48n16n28u33c9u16g4g28k13f46w45n24u31c16v33x50c12g9s24p3p15z44n12y44c33f34g32a30k31i34a19m39n50l48f10a43f47i35u37t27r5z43k18c8k2u32o35n17m19y31o30m27a32r35y16a39e38h23d24w14d18c16v6h1q12i49n26k8a17y14a11f12y38j28v44m44i38e6e49a30n34h50x41g30j34o2j4y31g21r44h37u19x5y35h31y16a24g28x47e1i14j9k43k4e50j50z25q45p8k31d39b50a3f50k25e29s7o20f46u49e48x6r5s13i16l47m30q2c1l18k36o35u41u5f43u14y32p13j4g3u32m41g3i15h28f35f24w40s31e4i27d27g6j7p5j50c44l30g22f5b10n32r23b18o7q34w39h42k16k21l18u42u35b10k37f25q23t8z31f2u16d16a20j36i7b28a8m46n44n35o8j46u15o3y3w25n49i35v18a47d10q16k7q1a3t34r14c13x14c29s41b39s32q33m8s22k32m14h17w11n31w27d25k34g24u19r24g17u43p12x12w11o7h9m30s25e17o37j9j13p43v9o27c29f37r8q32t33p15h32p26y19d10q41n30e15z50w50r49w26k24x12f43p37l14a2z48c28f46h8k16q25b50x37k33p2d47h50m34t22a10e40k2j10u29q20p7n8t20q21x5h6o36a1h49f34h18f7b33w7x37h41g50n11n2j45a15s24n10u8i5b7t14y47v31q10w34w49l28l9z8c36c47n4z39e15y48y29u38b50u27h41s41g20o19b46p45r27w48m37h38u14y8h28m27c12j37c6d38c9x34z22b29n28f43t9q46e10d37d21u26z43b38c22u27x36a27j6o37e28e15y22j36l43d47c8f4j27m6t32y18v7y14o28j38f35k14h42c4w36q41f34j18g25j36b13g33g50a11t32m45q34r38q45p29j33a41y49s1f17k50n14f43l14c25q23v41q38w7h29w43x9o29b7o46s18f3v45i24s42b9s18x49l26y37y49t24g33r8p9y39x27v36s20j27r19y39t46r33k3x13o22r15y16v19t40u29x45m36v44k31j19l1d17j33z26r24h2i12l46t26d41d10x13u27e44s19a7h46f45z34d27z28r50p19f28a14l3p12l47r37f19i47a12j13z13n50x22m47k8v5o17l36v49o48l23s8x42d1g8t44y20v26y33k32j47c50j42h13y23o30t22k29s37d8v25s33s36f11e6h36f39e30x25n16f16t8p9x16t17s22n1j28i1o47a9e25h19u19n33n43f9c1v35k39g5x6c9d41k8y48f1o29p4f24o44r38t47s10u28n41c43l16f39e50z9d22d23v24s42o19h45s31z44s9t24e10e48n18b1l37e37m35l31v39w2o36q23f32i33p22k27y28d47z8d46z8r46v14h45w15y4s18s33f20a33d44l46c35z45z2v14p28l49u5l44u24u4t22f36w44p50o25l40x49j11z33p50s41d9p11r5x44c19c10q44l39s40z41n48w11i36s14o9u26x3h37f9v30w43x43u13j2u36q41l42h23d35g24s29w29y8s30b5e5k34f23n11k37t25a45v4k25m39j13t27i27c17h17a2c23q36w5x22h34g43r34e31n38k15u33i4a25q35n16v7o41w23q8j15i33i6r22o9w28z21t22h8m11v19w32q20e47s15h38o6i29v33l9g31o25p17i6l13a12a22v22g39w43w25u38h15h9t31f26s9w5v39k35z18f28u38x25k47a35q8j3m12o13t36x24i21a29o28e48d4v36t2h39v45t23w44a29u28b25h27t20z27r41b13b39b44q50m8v25c16y27q45o42z11n11w41g46y23g4k15b45h33i43t30s20a48c27b50d36f21p42b17u9e45o11d4v22o33w24q15t31z30o47b42m47y1h43w3b39x44j23h18l22t46v34v29b48u39q22o27x5q43i30x41v9k35y30j32x3s29x21x30l33j36p18o46b9k15f29o11u25i4t9h21i25a48g49q19p41e15b34j30u27x23u44k8m27y15u14n24u15v1q2w48x4d39d43m27w16g38w44k35a29c11p43d46n15z48d9a38o20j38g23m14f27h19q4v10y5u41x27n15w24j29h45x17k42a37z40c33h18y3f40x48p8c25u20d37w22d20o2g21c41z34k16z20u22s8v34x3c15f49j8x4n13y23n10j37z19x39g43j48q21q13f7a35v31f21q28h42a48y48j10d49g28m42i36s14x33v3f29t18a6p1f12h29g17a45g48w3t47l26h30l34z20w22q24h29x34w19r17r1v33t44m27c45g20u10l42y31o32a1i34z1u26c17x13r33v37d28u24v48y19t21k35i33v39y31c19t22k14p14m30o50m43j46x20r20p11q6z29y35y28v36y16r50y7y47c31p20t16p32y42c28r31u1a9i26k43x32t12o28p32r3j22n41k8a38s2x9p9w36u35p23s4y23u11u46h32g16l18u45d18t15e13e31s41l1a49l44f12n17v1e38n23d18d3e40a37h34w23l9f45c5c33g44e3g47u30o50l2k36w45y8r39z46n28m50o46q11b40u36x5u4v42x16l48r4g5n10p43o23p41g44u26t20x18b47a20x5i50y20w19u23p50d33c15v46z43z7s1s36f47a13g7w17f35p26m42h27h22p23e23m42k24p28l20q28w26b34m32l37c15e49d43a30i48y25d3z49y41k47n9d18d46s5r45c50q7k43f44k49v34f43j7l21b14s24o35v12x37k33g39y29t5i34h47

To generate this, i threw a python script together in like 5 minutes and havn't even tested it haha but yeah, knock yourselves out


It might be a good idea to do so real quick before people find out it's broken. :)
“Teach me how to hack!”
"What, like, with an axe?"
User avatar
hellow533
Contributor
Contributor
 
Posts: 506
Joined: Thu Jan 29, 2009 3:27 pm
Blog: View Blog (0)


Re: programming challenge

Post by Amazingred on Mon Nov 04, 2013 12:23 am
([msg=78030]see Re: programming challenge[/msg])

33394 or 128434 depending on what you mean by "random numbers" (i.e. is 14 1 and 4 or fourteen)

Just a quick guess tho. Am i even close.
Last edited by Amazingred on Mon Nov 04, 2013 2:33 am, edited 1 time in total.
There are 10 types of people in the world. Those who understand binary and those who don't.
User avatar
Amazingred
Experienced User
Experienced User
 
Posts: 73
Joined: Wed Jul 25, 2012 7:10 pm
Location: Wayyyyyy out there
Blog: View Blog (0)


Re: programming challenge

Post by WallShadow on Mon Nov 04, 2013 1:07 am
([msg=78032]see Re: programming challenge[/msg])

128434

this isn't much of a challenge...


Code: Select all
#!/usr/bin/perl
print eval join '+', split /[a-z]/, <>;
print "\n";
User avatar
WallShadow
Contributor
Contributor
 
Posts: 594
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)


Re: programming challenge

Post by pretentious on Mon Nov 04, 2013 3:04 am
([msg=78034]see Re: programming challenge[/msg])

hellow533 wrote:It might be a good idea to do so real quick before people find out it's broken. :)

I figured if I had made a mistake, people would be like 2039444? and I'd be like..... congratulations :D
Yeah, Amazingred, 128434 is on the money. Was your solution as simple as WallShadow's?
It wasn't meant to be too hard. Many of my uni assignments have involved parsing formatted data so I thought I'd play with that for the newbies. I have another diabolical idea in the works which will hopfully restore my leetness in everyones eyes

-- Mon Nov 04, 2013 7:04 pm --

hellow533 wrote:It might be a good idea to do so real quick before people find out it's broken. :)

I figured if I had made a mistake, people would be like 2039444? and I'd be like..... congratulations :D
Yeah, Amazingred, 128434 is on the money. Was your solution as simple as WallShadow's?
It wasn't meant to be too hard. Many of my uni assignments have involved parsing formatted data so I thought I'd play with that for the newbies. I have another diabolical idea in the works which will hopfully restore my leetness in everyones eyes
Goatboy wrote:Oh, that's simple. All you need to do is dedicate many years of your life to studying security.

IF you feel like exchanging ASCII arrays, let me know ;)
pretentious wrote:Welcome to bat country
User avatar
pretentious
Contributor
Contributor
 
Posts: 573
Joined: Wed Mar 03, 2010 12:48 am
Blog: View Blog (0)


Re: programming challenge

Post by centip3de on Mon Nov 04, 2013 3:22 am
([msg=78035]see Re: programming challenge[/msg])

I'm with Wall, this doesn't seem like much of a challenge:

Code: Select all
import std.stdio;
import std.algorithm;

int main(string[] args)
{
    string text = "27w29r2v9u40q49j...";
    auto sum = reduce!((a, b) => a + b)(0, text);
    writeln(sum);
}
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rick Cook
User avatar
centip3de
Moderator
Moderator
 
Posts: 1412
Joined: Fri Aug 20, 2010 5:46 pm
Blog: View Blog (0)


Re: programming challenge

Post by Amazingred on Mon Nov 04, 2013 3:35 am
([msg=78036]see Re: programming challenge[/msg])

sorry, forgot to post my code

Python 2

Code: Select all
count=0
placeholder=''

for i in datax:
    if i in str(range(10)):
        placeholder+=i
    elif len(placeholder)>0:
        count+=int(placeholder)
        placeholder=''
count+=int(placeholder)
print count


-- Mon Nov 04, 2013 3:41 am --

and for the record, Don't apologize for the challenge. Sure my cat could have coded it drunk and I don't even have a cat...but anytime anyone ANYONE makes a relevant post there's no need for I'm sorry. This thread will be active for a bit and a few poeple may stop in a time or 2 just to see who's posting what. And maybe one of those people decides to make another challenge. Or you come out with another challenge for the reasons that you said lol. either way IMO relevant is relevant and its never a bad thing.
There are 10 types of people in the world. Those who understand binary and those who don't.
User avatar
Amazingred
Experienced User
Experienced User
 
Posts: 73
Joined: Wed Jul 25, 2012 7:10 pm
Location: Wayyyyyy out there
Blog: View Blog (0)


Re: programming challenge

Post by mShred on Mon Nov 04, 2013 9:19 pm
([msg=78043]see Re: programming challenge[/msg])

hellow533 wrote:
pretentious wrote:I've got 5000 random numbers separated by random letters. Add all the numbers together for the answer. Nuff said
Code: Select all
teehee

To generate this, i threw a python script together in like 5 minutes and havn't even tested it haha but yeah, knock yourselves out


It might be a good idea to do so real quick before people find out it's broken. :)

wat? Clearly it works. Else it wouldn't have worked. But I guess that statement coming from a guy who hates programming isn't much of a surprise.
Image

For those about to rock.
User avatar
mShred
Administrator
Administrator
 
Posts: 1689
Joined: Tue Jun 22, 2010 4:22 pm
Blog: View Blog (2)


Re: programming challenge

Post by Goatboy on Mon Nov 04, 2013 10:30 pm
([msg=78044]see Re: programming challenge[/msg])

mShred wrote:
hellow533 wrote:It might be a good idea to do so real quick before people find out it's broken. :)

wat? Clearly it works. Else it wouldn't have worked. But I guess that statement coming from a guy who hates programming isn't much of a surprise.

Image
Assume that everything I say is or could be a lie.
1UHQ15HqBRZFykqx7mKHpYroxanLjJcUk
User avatar
Goatboy
Expert
Expert
 
Posts: 2788
Joined: Mon Jul 07, 2008 9:35 pm
Blog: View Blog (0)


Re: programming challenge

Post by hellow533 on Mon Nov 04, 2013 11:18 pm
([msg=78045]see Re: programming challenge[/msg])

mShred wrote:
hellow533 wrote:
pretentious wrote:I've got 5000 random numbers separated by random letters. Add all the numbers together for the answer. Nuff said
Code: Select all
teehee

To generate this, i threw a python script together in like 5 minutes and havn't even tested it haha but yeah, knock yourselves out


It might be a good idea to do so real quick before people find out it's broken. :)

wat? Clearly it works. Else it wouldn't have worked. But I guess that statement coming from a guy who hates programming isn't much of a surprise.

Bitch please, if you don't check to make sure something works before giving it as a test to others, you're just hurting yourself. Working or not, you should check. I do program sometimes, and I can't imagine submitting a database management system update to my boss without first checking to make sure it works.

Either way, you sound a bit butthurt. You have to remember I posted that comment before it was tested, it could have been broken and not have worked.
“Teach me how to hack!”
"What, like, with an axe?"
User avatar
hellow533
Contributor
Contributor
 
Posts: 506
Joined: Thu Jan 29, 2009 3:27 pm
Blog: View Blog (0)


Next

Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests