Advertisement
vishnubob

ciphertext-number-0709

Jul 9th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 7.84 KB | None | 0 0
  1. Working on Cicada3301 July 9, 2017
  2.  
  3. Assuming
  4. the gravitational acceleration constant (32.2 ft/sec^2 in English units, 9.8 m/sec^2 in metric units).
  5. g= 9.80665 metres (32.1740 ft) per s2
  6.  
  7. full mass 1400
  8. dry mass 7.5
  9. isp .5236
  10. delta-v 26.85
  11.  
  12. 26.85x9.80665=263.3085525
  13. 263.3085525/509968658.925 = .0000005163230090551981
  14.  
  15. Code:
  16.  
  17. package main
  18.  
  19. import (
  20.     "fmt"
  21.     "math"
  22.     "math/big"
  23.     "strconv"
  24. )
  25.  
  26. const debug = 0
  27.  
  28. func Reverse(s string) (result string) {
  29.     for _, v := range s {
  30.         result = string(v) + result
  31.     }
  32.     return
  33. }
  34.  
  35. func main() {
  36.     astr := "EZCZLRH79LKC0KKKOSWKKO04WCO4844OGO0OO08008GW88S44W4K80W8W0GKO4KOGK0K8S8CC8OW0WO8CGKKSGKSW08S840SG88O4CS8KS4WSSKWKKOSOO8C0C00GWKC40K00SW0K8O884C884G48GSKC848SC484OKC4WSCOKGSSWCC4GG40SK84"
  37.     rstr := Reverse(astr)
  38.  
  39.     const prec = 10000
  40.     alpha := new(big.Float).SetPrec(prec)
  41.     div := new(big.Float).SetPrec(prec)
  42.  
  43.     bb := big.NewFloat(509968658.925)
  44.     zd := big.NewFloat(263.3085525)
  45.     result := new(big.Float).SetPrec(prec)
  46.  
  47.     for i := 0; i < len(rstr); i++ {
  48.         a := string(rstr[i])
  49.         aint, err := strconv.ParseInt(a, 36, 8)
  50.         if err != nil {
  51.             panic(err)
  52.         }
  53.         aflt := float64(aint)
  54.         apwr := float64(1)
  55.         if i > 0 {
  56.             apwr = math.Pow(36.0, float64(i))
  57.         }
  58.         inc := big.NewFloat(aflt * apwr)
  59.         alpha = alpha.Add(alpha, inc)
  60.         if debug == 1 {
  61.             fmt.Println(a, aflt, apwr, alpha)
  62.         }
  63.     }
  64.  
  65.     div = div.Quo(zd, bb)
  66.     if debug == 1 {
  67.         fmt.Println("dividend: ", div)
  68.     }
  69.     result = result.Quo(div, alpha)
  70.     fmt.Println("result: ", result)
  71.  
  72. }
  73.  
  74. // result to 10000
  75. // Unfortunately I get different numbers with different precision
  76.  
  77. alpha-numberic to b36:  3.42954909710762131717712720165882997484498070575551205873460673019135184223542966439802455768571406256642929001049599360948859849764242722995465159315925823248893079730129445040983577512311744259190647226764746533266131421481071217899981776390512401021846743349321196466182750947099796836e+287
  78. dividend:  5.1632300905519811248871268072077261253772346943818772058031507791200243896206639621660955364877251542758674005370240753621361762389504470202648740791845290500525186692226325068060545880741151219726421683306003014676986971462644071762913688375870375879423459155593011421809550431386761910653248385052093244477960322835396934997232670273411407272827497551227845876867742903690496705126090322453219285704112927578877444725834986447560543691860314719706316061909370534781988364964611268649033900216783084204879582769281415392054038321307753502021206730647689807736114532120434642587224378457129857776723837159667169770981263691021692203513165659293803928896180186007421563423944876264688705852703053088674607869394577567126241323479226435199078139480648956307945042228116793111145109264297911786685802365720476858200802683259599833740331524711462150805230954530603315567786719241834501538266564165850235447815082206570584363321706051892895379893678125225276797112920078057497517171968406978061846206875916754041447345273017435687145595537571881477365754751577291846160080799271698342943244841761845137764416217736073259485869864783308097060495828283697153633643661611445586568503989200845646075734511182279421983948298484600245347855037363265652401173084081479676667730972586449707525509058917730742534495792853182802480652075868749588930817323464924148413001839760391681032816659650396335782020482694354905870987777021689328210996074262112271893315488164087651976122279411118903373423817971850205596261812525213258929231014596306723374168020419615578344472051089323764464374618083554154632764779020215750388820398122172273220160717216064018670459332953664594977944669747617316249895372989590754649526288192063298732548510898794111970618705548233007252487940267093950779763231878472968084288526360568347330048278422122795229403193024181267400898965021208905690030730418269959203388442151828127683269561185739576131273029320342990996766888970839832242511344464427628261149950557384676977182033296365625792938324504386735665685552543579444014148997605849730339803824038685029423023762763123451239894869193028639821598783856618383954410891437486847993866632201417514639432489870369002009974065006446521665967477637714468267614477765724759662434073946970102824003411884426334109750446494118802465780269443362395044072183876275860712117613799889683297239434701312238093126792818620728308614284911062813807204496685592495017747321315606754977762881316919218388640723569287984969477585576140618541638225353721930985896459269231021471748919412621754131638803496565981405511196051972298508992670269626569198456578032396624578497889118601838516186138397965210855475431838533473791046407699226649951125388307368514212028430220733820388643036698438885481870283631939469424479535665965436116314069674178773549863810879498756933820810871423969549282506460862051630813111413202123843203316275365084742507034126219463562118118547414046061453822286416068937828399631563301085148309489356269772567404528867180871636746312325867250384e-07
  79. result:  1.50551280776429014437535512721633841008408042479474949477213263220246221258186025281380260505184330247282021043157389633467395172782881858572375404901111904180140836756937522839936485493586716730408037592814303033050348494509583658271299717799516240103143770019175458543052280379578729982909823505030250009228331970676661897058961413266535844202772394581465026199126117346449959606778387807754240844090649235060122186857867183810888642063550134673984505401607733810870711378935171029236039384896943531402398522659808379014058237342342310307971674379108304399828567214924307944352273976764485621940131547166642846066779581535450159000657728368286395252226730811099756188113850068989596749765278676693612460837325326890341592666513219086692188677926995961955058036489907800374223630581728053662533798847817692898924169416850732882944268954654142885503389156965779130348593599085905174088309340435815591703048251806272784361365121923630455865048087772185969653656450352909982882995347498704551877519730026651926029889506619182984163235993757545529206550570472095636676091611100286015756957429231847450251686499976350256210276508114329815220958101425376912167957530260807687813231325465079323366159450477703957216509715307697914251566123577240969675300732336639592734791065642885098397384598643173651190455252304497481082113730757286694773795413244370592157119136910198078898683571480404795340224223227162916457232584006729421476891129685715319114301746712073155188331669487628469664863633487256258212209858352755156577355028749018515282159015061300154775312811782347280780595159205184945349157123354576143148364452332028168896674593668001974252549925323530690902494118235990794246034900513490348787192380011115136615750370070824116895382421887247523251913768709132563376794336727944532054709159803376206454603162538649804524472509651853833009748285974821324895599117958816370500355007478594244330462747349266946902137862037140170149814447014859239363447288678412640442180105304567215234697798074820103025748133719604288570804320640938575014943679113094754319444711264866525503071385950259238461071075745895307778156780772686970281853875790588673335954965346615584176984247759392217432237140292761414808315885082946186053849854064548685209833350853740575032427543660935933598603400932211483881359895995665136827624535692596134003896092318950994151638260957329976863233198483399394600314400457590874835088507506048319804778513021201591397721166361395857944639055527357836321990475138766959741548737308011246419018261557387731847974099409696615271659090637266423258368133794726262379432671697840136997874976994534210945542998712356169136275473327789806360532317361021519675468786545969435665098232970168643278177689013456673237816246006330076056502545785033774030270602256992666610587964603763401594690882815767627387772327139325335142538683367726742925911998430949293350220462243393884703182725142568600223557579716320216877602282795906958661324084832132609730735335569458525706318361804800649494859400464262852315994e-294
  80.  
  81. Now for 'ALittleHelp'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement