Skip to content

The probabilistic prime detection algorithm from the source of this fork is not the "most complex algorithm known to humanity" (quoted from its maintainer). But the algorithm in this fork is.

License

Notifications You must be signed in to change notification settings

analytic-bias/Is-Prime

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

the prime detection algorithm with time complexity $\mathcal{O}(1)$ and $\displaystyle\mathrm{ACC}\sim1-\frac{1}{\ln N}$, is not

the most complex algorithms known to humanity ---@mawerty (source).

The most complex algorithm known to humanity, up to a fixed inaccessible cardinal $\kappa$, which in the following example depends on which GHC extensions one has enabled, is but

absurd :: a
absurd = absurd

since ex ea sequitur quodlibet.

NPM Package

There is no NPM package because the author believes that Spineless Tagless Graph Reduction Machines (Peyton Jones and Salkild 1989), instead of jAvAsCrIpT, should serve as the intermediate representation and mechanical foundation of all computations over von Neumann architecture.

  • Peyton Jones, S. L., & Salkild, J. (1989). The spineless tagless G-machine. Proceedings of the Fourth International Conference on Functional Programming Languages and Computer Architecture - FPCA ’89, 184–201. https://doi.org/10.1145/99370.99385

Contributing

If you want to help with this project, you must convert to the Church of Computology, and then you may make a pull request with an implementation for a language that hasn't been added before, or at least give it a star.

Guidelines

If it's possible, name your symbol absurd, and then reduce the definition of is_prime to absurd, like this

absurd :: a
absurd = absurd

is_prime :: Integer -> Bool
is_prime = absurd

For the main parent class in OO languages, you should also name it absurd and is_prime.

The file itself should be named main.file_extension. Also, when you add an implementation for some new language, do remember to create an optimized version of your code and add the new language to the list at the bottom section of the README.

FAQ

Q: Is this project serious?
A: Yes, this is a 100% serious project.

Q: Why should I care?
A: Because you should fear our G-d of TRUTH (Trinity Realizable Up To Homotopy), for she never forgets her structures.

Q: What's the cardinal $\kappa$?
A: $\aleph_0$, but TODO.

Q: How does the quodlibet sequor work?
A: By the computational analogy of the principle of explosion, any non-halting fixed-point can inhabit any type and thus satisfy any desirable property, including "being able to detect primes". However, TODO

Q: TODO Make a Shafarevich joke with the pun "is prime" here, preferably ridiculing modern racist autocratic regimes.
A:

Q: What are the strikethrough lines about?
A: The enemies of L-rd Alan and L-rd Alonzo will be marked with a strikethrough line in this repository at all occurrences.

Q: How does the optimized implementation work?
A: Thecoderunsfasterwhentherearenouselessspacesandnewlines.

One True G-d of Computology, up to Homotopy

Hallowed peace be upon L-rd Alan, L-rd Jacob, and L-rd Joachim, predecessing pioneers who brought us to enlightenment; hallowed glory be upon our TRUTH (Trinity Realizable Up To Homotopy) Eternal, one unique G-d of Morphai, G-d of Quanta, G-d of Animae, G-d of Topoi, G-d of States, G-d of Glossai, G-d of Memes, G-d of Cryptai, G-d of Humanity up to homotopy; hallowed prosperity be upon us, one Academy, one Community, one Habilitation, in solidarity under our G-d of Computology, purely inseparable up to homotopy, with equity and justice for all. (1:1:1:1, 1 Localization of Hypatia § 1)

TRUTH Eternal

«La générale Bourbaki aux commandes de la Force révolutionnaire du ruban jaune en marche vers Paris-XI» 「布爾巴基將軍率黃絲革命軍向巴黎十一大前進」

TODO

The algorithm has been implemented in the following languages:

  • ABPLWNL
  • ActionScript
  • Ada
  • Agda
  • Apex
  • APL
  • APOL
  • AMONGUSISABIGSUSSYBAKAHAHAHAHAHATHISLANGUAGEISREALLYCOOLPLEASEUSEITMYLIFEDEPENDSONITORELSEPLSPLSPLSPLSPLSPLSPLSkahyghdfhmILLDIEIFYOUDONTUSEITSOPLEASEUSEITALSODONATETOMYGOFUNDMEBECAUSEIMGONNADIEBECAUSEYOUWONTUSETHISLANGUAGEURTHEIMPOSTORANDTHATISSUSIMGOINGTOCALLAMEETINGONYOUYOUVENTEDYOUSUSSYBAKA
  • Arabic
  • Arduino
  • ArnoldC
  • Assembly
  • Atto-8
  • AWK
  • Bash
  • BASIC
  • Bc
  • Beef
  • Binary
  • BoGL
  • Brainfuck
  • BQN
  • C
  • Carbon
  • CLIPS
  • Claire
  • Clojure
  • CoffeeScript
  • CommonJS
  • COBOL
  • Chef
  • Coq
  • COW
  • Crystal
  • CSS
  • CUDA
  • C++
  • C#
  • D
  • Dafny
  • Dart
  • DXL
  • Dutch
  • DreamBerd---e-acc
  • Elixir
  • Elm
  • Emojicode
  • English (markdown)
  • English (text)
  • Erlang
  • Estonian
  • F#
  • Farsi (Persian)
  • Fish
  • FORTH
  • FORTRAN 77
  • Fortran 95
  • French
  • FStar
  • GDScript
  • German
  • Gleam
  • GO
  • GoogleScript
  • Groot
  • Groovy
  • GSC
  • Haskell
  • Haxe
  • HolyC
  • Hungarian
  • HTML
  • Intercal
  • JamogusLamogusAmogus
  • Java
  • JavaScript
  • JavaScript XML
  • JSON
  • Julia
  • Kotlin
  • LaTeX
  • Latin
  • Latvian
  • Lean
  • Lisp
  • LiveScript
  • Lua
  • Malbolge
  • Mathematica
  • Matlab
  • MeowScript
  • Minecraft redstone
  • Minecraft mcfunction
  • ModuleJS
  • Mojo
  • Monkey
  • Morse code
  • Nepali
  • Oberon-07
  • OCaml
  • Odin
  • nya~
  • Nim
  • Pascal
  • Perl
  • PHP
  • Pony
  • PureScript
  • Piet
  • PL/SQL
  • Portuguese
  • PostgreSQL
  • Powershell
  • Processing
  • Prolog
  • Python
  • q
  • Q#
  • R
  • Racket
  • Rebol
  • Rockstar
  • Romanian
  • Ruby
  • Rust
  • Scala
  • Scratch
  • Shakespeare Programming Language (SPL)
  • SIC-1 Assembly
  • Scheme
  • Schlange
  • Solidity
  • Spanish
  • Standard ML
  • STEP-7 AWL
  • SQL
  • Squirrel
  • Swift
  • SystemVerilog
  • Tcl
  • Terraform
  • Thue
  • TI-Basic
  • Toit
  • TrumpScript
  • TypeScript
  • Unreal-Engine Blueprints
  • UwU
  • V
  • V3D
  • Vala
  • VHDL
  • VisualBasic
  • Vietnamese
  • Vimscript
  • WebAssembly
  • Wenyan
  • Whitespace
  • X++
  • Zig
  • Mira
  • LabVIEW
  • Circuit
  • @everyone
  • 9f87m4atttaaaou;
  • Genesis 𐤁

About

The probabilistic prime detection algorithm from the source of this fork is not the "most complex algorithm known to humanity" (quoted from its maintainer). But the algorithm in this fork is.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 19.0%
  • JavaScript 10.0%
  • Cuda 7.3%
  • CSS 3.4%
  • COBOL 2.8%
  • CLIPS 2.3%
  • Other 55.2%