Posted: Sat Apr 23, 2011 5:49 am
bc, cat and a terminal window that tells you how wide and tall it is when you resize. Probably the easiest solution.
Code: Select all
y = ((17**39)**11)
y = y.to_s
z = 0
x = y[z].chr
while x != nil do
puts x
z = z + 33
x = y[z].chr
end
Code: Select all
using System;
using System.Numerics;
namespace ThePowerToBe
{
class Program
{
static void Main(string[] args)
{
BigInteger ergebnis = BigInteger.Pow(17, 39 * 11);
string tmp = ergebnis.ToString();
for (int i = 0; i < tmp.Length; i++)
{
if (i % 33 == 0)
{
Console.Write(tmp[i].ToString());
}
}
Console.ReadLine();
}
}
}
Code: Select all
var str="7287646047175693809181003658560624690001934249475037583383410966869968575
4467436227234724042627102964298841820516037233528475978459785414759364887185809727
4405592779889038847476635050174799866232012301434410796898542809249563904637123246
8838883439670635548482463420202788891164816364632521828315194205599067991807910869
8595734119712778333056577256424265140391245645531793341906275133082870098777864521
4725045780084668671936673752128478286140806951581228924388701768931419905595306419
093162717560756925359266275186144493274175697";
for (i=0;i<str.length;i+=33)
{
document.write(str.charAt(i));
}
lol?hobbist wrote:Gawd, I love python. Can't wait until I really start learning.Code: Select all
x = str(((17**39)**11)) x2 = '' for i in range(0,len(x),33): x2 += x[i] print 'powers that be ', x2
Code: Select all
public BigInteger ThePowersThatBe(){
BigInteger n17 = new BigInteger("17");
return n17.pow(39).pow(11);
}
Code: Select all
public String ThePowersThatBe(BigInteger result){
String retorno = "";
int pivot = 0;
while (true){
try{
retorno += result.toString().substring(pivot, pivot+1);
pivot+=33;
}catch (StringIndexOutOfBoundsException e) {
return retorno;
}
}
}
Code: Select all
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)
sol += resOp.charAt(i);
System.out.println(sol);
}
}