Search found 8 matches

by th4wri
Thu Aug 16, 2018 4:50 am
Forum: Challenges Solved
Topic: The Powers That Be
Replies: 27
Views: 2902

java : package hacker.org; import java.math.BigInteger; public class ThePowersThatBe { public static void main(String[] args) { BigInteger b = new BigInteger("17"); b = b.pow(39); b = b.pow(11); String resOp = b.toString(); String sol = ""; for(int i=0;i<resOp.length();i=i+33) so...
by th4wri
Tue Aug 14, 2018 12:10 pm
Forum: Challenges Solved
Topic: Pi Hates Nines
Replies: 26
Views: 3141

emm java code also but i hav another method not mentionned here we can use one of the regex tester tools to find the chain https://www.freeformatter.com/regex-tester.html regex : 9[^9]{120,}9 why 120 ? i tested with 50,70,100,110,120 until the msg Found 1 match. Match is highlighted below. 986065706...
by th4wri
Tue Aug 14, 2018 10:27 am
Forum: Challenges Solved
Topic: Delegates
Replies: 17
Views: 2031

java solution using regex :p package hacker.org; import java.util.regex.Pattern; public class Delegates { public static void main(String[] args) { int sum = 0; for(int i=1; i<=2118; i++) { if(Pattern.compile("(.0)$").matcher(Double.toString(Math.sqrt(i))).find()) { System.out.println(i); /...
by th4wri
Thu Mar 30, 2017 2:04 pm
Forum: Challenges
Topic: Imagine all the silicon
Replies: 13
Views: 22277

*** Edited by Moderator ***
by th4wri
Thu Mar 30, 2017 1:06 pm
Forum: Challenges Solved
Topic: Keep Digging
Replies: 9
Views: 870

by th4wri
Tue Mar 29, 2016 2:09 pm
Forum: Challenges Solved
Topic: Didactic RGB
Replies: 17
Views: 1563

I use an app named color detector

Code: Select all

http://www.cosmin.com/colordetector/
simple to use & withouy downloading the picture
then converting the hex value to binary
by th4wri
Tue Mar 29, 2016 1:13 pm
Forum: Challenges Solved
Topic: Rabbits everywhere
Replies: 7
Views: 639

i solved it in this way (C++ recursive..) #include <iostream> using namespace std; int fibonacci(int n) { return (n <= 2 ? 1 : fibonacci(n - 1) + fibonacci(n - 2)); } void main() { int i,som; som = 0; //affichage des nombres de Fibonacci for (i = 10; i < 18; i++) { cout << fibonacci(i) << endl; } //...
by th4wri
Tue Mar 29, 2016 12:16 pm
Forum: Challenges Solved
Topic: Counting
Replies: 2
Views: 296

Put the eehxhqpmawoewdffplqrturxdjlsaylymgxjsthjpacyuxnpuvqlezhosbnmmjzeeahjllnacofwyxxrelwgadsmolyynahrfvqkqonkgjsazwczwbayptsnsuvyomalyisyroxbivlqvtaltvjwtqbsbnscqmdcwxxdkvwctbynbvokdcovbebokjlmekezpcnoxvzzpaqhusdhgbhtqzeuoegylofircjlxdypcvekkllxjxlynidhgngtpblebyoazqvoccnhauwcsviqlbzsmyrproffqapj...