fork(2) download
  1. import java.math.BigInteger;
  2.  
  3. public class Main {
  4.  
  5. public static void main(String[] args) {
  6.  
  7. BigInteger images = new BigInteger("2").pow(15544); // Demo calculation; Desired calculation: BigInteger("4096").pow(800*600)
  8.  
  9. System.out.println("The number of possible 16 bpc color 800x600 images is: "
  10. + images.toString());
  11.  
  12. }
  13.  
  14. }
Success #stdin #stdout 0.06s 245952KB
stdin
Standard input is empty
stdout
The number of possible 16 bpc color 800x600 images is: 162275367345366715177524322811375155721241834823260752109939300419711165831404540235035546373361859288078103799753431179816883083900990220691745572020814854987478985919419795085736265333399596521246202153041277154358948109208884324138017245440412782099351125410317570405329398950742812758889903505110073066764553039934022988697096823977192844701687965505596040949597727929965185897053348316503758600790690896539879139754447921796946081195081271976998802628831601681929742254760658521248701992096544666974933416813376754976682875305247632780278607785227311611493258639807147072692794554372949878308346206203912751496956923383895851123631590419705545480753070063286303531570609264758926210651811571933201801641660280917298331819852724090828634273914788619587799199987243404405462255546016080861277814358626228608776418216917304837564584398329652572394549125939489878345031570419247732166946056660613115103533183509573349570454671571103028443553776534520667897051659805238688984510956787391254732166144180215073353055826952220628821191990804773614785092188021982511031807860594827439698257734071514724505912376152307836074912081109009787131339176846839496917265248664177600340392921790267078753817803957916115618961232233650850845367442561170447017174778622974500361202467279991629962572171755407200304207031822303008159143944761856601671324635053823070396832032716098384824128037802542013649362986115111490115042459916268688821676950369050312235328193396158457158809071155841518301716245119634590753833473408261439013481469185858556631678990653763808615132191784640710168965818720187337931800514126620603168600723594467457532637280913127498813454213683007122351788496372447227831241990858987511570154386010290201881088265316559404011539489861105120333619557488109471732509447823210771163200159712172044814530111869486287318896936042033825758823524640530686196373220592037168548802623657580737816853073997634859165925158961305393008672538078018527490447911550384626611965258761963053418722623881743684251387049834546853187666837156076776557466700615172330201469242809658993676929950321241762659831795799470275795929303710730057018796833921258364139435446174752646845658275474543164070668460816954292262351074591327731059016515351594941668480173482874363149675211328295430567144016962607851966927443309597775414146962060696941386600425226455365528306409213347945763994219030345991735020758172231766428135795989730363463398135747286199988353238222113604159981058817779369664754761531565872213069243413145900086545144058932163975889012655281477861028725003967083839730183886867923745290710288823827148579276612242125176452369545645642118914000631892251985872332602707273626350038298494652511881092520517421125588085283519426117637181967176129115127301148812472168728375954124893868189976444690179688923688197664075459159665953533298485212745229206571264956042397535074356394331058203128236456298340902315485832743034336354181791916728183024187991917395532156986457814511624377125739596600085482577838594613777827683867209235525539234436067412681039035297946394381941347575251409050465288323045319540119210199167028210812539985365700054556408880632353780267539599086490716188122609608952305889134552041870994885258238856098764802914717862455831403621698098301206612230491423322188539141051767961891756121142558478241020486744893120224439494062382886199405107859370538026379029616538790720479371195814813335742735092783120835068825381696105123303232775774961444995355160151140835980663774366937303460608372162527215448482191998647771781398435361850322640089580647480546578573927491494096539281825780190718736974464273377149292898303143576877757913418100186157135204219186987022967273714206975189580933399232860755046331346349390800788832733410414776667962358274798920148328553845455914431752434850409772749599873345119417666659763894494651525491395324365208747242691232965612697605613028436517806537534384519057986956278539261877305875141135264269535368903751888290736136878093569498868528324963553453934493637175234529684095814896408967547313316767546259855792505643288336980901637826061453868381100129384974964129882812440491050449719431352416087830901941110236537294645986426441563204410501054600810012530486632457208017703792697810612239872591337805056175658280997257186072603335285276768973247609139043267439302232423816416167551625628755081830350392073466772040620511229904517413157020856868595938629208664674576146224738164541003272489988382489549923859214138458573125298226833535337687591908267259286768249443209073873831690748215329673339237439981619715648216545346406007162594610467569351313561048638896470083953288753679279609028147516719750795547900280262041872137828136124416