Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

Pidora / Fedora • Re: π Day - Extracting one million digits of the value of Pi

$
0
0
Extracting one million digits of the value of Pi and writing it to a text file.

Code:

----------------------------------------------------------------------ubu@fedora:~$ podman run -ti amp_x86_64:latest / # fastfetch       .hddddddddddddddddddddddh.           root@2aceda0e3986      :dddddddddddddddddddddddddd:          -----------------     /dddddddddddddddddddddddddddd/         OS: Alpine Linux v3.20 x86_64    +dddddddddddddddddddddddddddddd+        Host: Raspberry Pi 400 Rev 1.0  `sdddddddddddddddddddddddddddddddds`      Kernel: Linux 6.14.0-0.rc6.49.fc43.4 `ydddddddddddd++hdddddddddddddddddddy`     Uptime: 37 mins.hddddddddddd+`  `+ddddh:-sdddddddddddh.    Packages: 40 (apk)hdddddddddd+`      `+y:    .sddddddddddh    Shell: qemu-x86_64-staticddddddddh+`   `//`   `.`     -sddddddddd    Display (    EZCAP28X): 1920x1080 @]ddddddh+`   `/hddh/`   `:s-    -sddddddd    Terminal: xtermddddh+`   `/+/dddddh/`   `+s-    -sddddd    Terminal Font: fixed (8.0pt)ddd+`   `/o` :dddddddh/`   `oy-    .yddd    CPU: Unknown (4) @ 1.80 GHzhdddyo+ohddyosdddddddddho+oydddy++ohdddh    Memory: 2.14 GiB / 3.67 GiB (58%).hddddddddddddddddddddddddddddddddddddh.    Swap: 0 B / 3.67 GiB (0%) `yddddddddddddddddddddddddddddddddddy`     Disk (/): 4.20 GiB / 9.97 GiB (42%)y  `sdddddddddddddddddddddddddddddddds`      Local IP (end0): 192.168.1.210/24    +dddddddddddddddddddddddddddddd+        Locale: C     /dddddddddddddddddddddddddddd/      :dddddddddddddddddddddddddd:                                         .hddddddddddddddddddddddh.           / # gp <pim.gp                  GP/PARI CALCULATOR Version 2.17.2 (released)          amd64 running linux (x86-64/GMP-6.3.0 kernel) 64-bit version           compiled: Mar  6 2025, gcc version 14.2.0 (Alpine 14.2.0)                    threading engine: pthread, nbthreads = 4                (readline v8.2 disabled, extended help enabled)                     Copyright (C) 2000-2024 The PARI GroupPARI/GP is free software, covered by the GNU General Public License, and comes WITHOUT ANY WARRANTY WHATSOEVER.Type ? for help, \q to quit.Type ?18 for how to get moral (and possibly technical) support.parisize = 8000000, primelimit = 1048576, factorlimit = 1048576  ***   Warning: new stack size = 500000000 (476.837 Mbytes).   realprecision = 1000016 significant digits (1000000 digits displayed)   timer = 1 (on)cpu time = 21,943 ms, real time = 22,501 ms.cpu time = 4,269 ms, real time = 4,366 ms.  ***   last result: cpu time 4,269 ms, real time 4,366 ms.Goodbye!/ #                         ------------------------------------------------------------------- GNU nano 8.0                       piout.txt                                  3.14159265358979323846264338327950288419716939937510582097494459230781640628620>
piot_txt.jpg

Statistics: Posted by geev03 — Sat Mar 15, 2025 10:03 am



Viewing all articles
Browse latest Browse all 8093

Trending Articles