Prime Numbers in C++ in bytes. Achievements Cheevos Holes Languages Medals Miscellaneous All Holes 12 Days of Christmas 24 Game 99 Bottles of Beer Abundant Numbers Abundant Numbers (Long) Arabic to Roman Arithmetic Numbers Arrows Ascending Primes ASCII Table Billiards brainfuck Calendar Card Number Validation Catalan Numbers Catalan’s Constant Christmas Trees Collatz Continued Fractions CSS Colors Cubes Day of Week DFA Simulator Diamonds Divisors Emirp Numbers Emirp Numbers (Long) Emojify Evil Numbers Evil Numbers (Long) Factorial Factorisation Farey Sequence Fibonacci Fizz Buzz Foo Fizz Buzz Bar Forsyth–Edwards Notation Fractions Game of Life Gijswijt’s Sequence Happy Numbers Happy Numbers (Long) Hexdump Hilbert Curve Intersection Inventory Sequence ISBN Jacobi Symbol Kaprekar Numbers Kolakoski Constant Kolakoski Sequence Leap Years Levenshtein Distance Leyland Numbers ln 2 Look and Say Lucky Numbers Lucky Tickets Mahjong Mandelbrot Maze Medal Tally Minesweeper Morse Decoder Morse Encoder Multitap Input Musical Chords N Queens Niven Numbers Niven Numbers (Long) Number Spiral Odious Numbers Odious Numbers (Long) Ordinal Numbers PalindromemordnilaP Pangram Grep Partition Numbers Pascal’s Triangle Pernicious Numbers Pernicious Numbers (Long) Poker Polyominoes Prime Numbers Prime Numbers (Long) Proximity Grid QR Decoder Quine Recamán Repeating Decimals Reverse Polish Notation Reversi Rijndael S-box Rock-paper-scissors-Spock-lizard Roman to Arabic ROT13 Rule 110 Scrambled Sort Set Seven Segment SI Units Sierpiński Triangle Smith Numbers Spelling Numbers Star Wars GPT Star Wars Opening Crawl Sudoku Sudoku (Fill-in) Ten-pin Bowling Tic-tac-toe Time Distance Tongue-twisters Topological Sort Tower of Hanoi Transpose Sentence Trinomial Triangle United States Vampire Numbers Van Eck Sequence Zeckendorf Representation Zodiac Signs γ λ π τ φ √2 𝑒 Alphabetic Numbers Apéry’s Constant Binary Lambda Calculus Connect Four Crossword CSS Colors (Inverse) CSS Grid Ellipse Perimeters Flags Floyd-Steinberg Dithering Gray Code Decoder Gray Code Encoder Hexagonal Spiral Highly Composite Numbers NFA Simulator Numbrix Odd Polyomino Tiling p-adic Expansion Polygon Triangulations QR Encoder Quadratic Formula Semiprime Numbers Smooth Numbers Snake Sphenic Numbers Taxicab Numbers Turtle Tutorial All Languages ><> ALGOL 68 Assembly AWK Bash BASIC Berry brainfuck C C# C++ Civet Clojure COBOL Coconut Common Lisp Crystal D Dart Elixir Erlang F# Factor Forth Fortran Gleam Go GolfScript Groovy Haskell Hexagony J Janet Java JavaScript jq Julia K Kotlin Lua Nim OCaml Pascal Perl PHP PowerShell Prolog Python R Raku Rockstar Ruby Rust Scheme sed SQL Swift Tcl TeX V VimL Wren Zig 05AB1E APL ArkScript Arturo Befunge BQN CJam CoffeeScript Egel Fennel Harbour Hare Haxe Hush Hy iogii Knight Lily Luau Odin Picat Qore Racket Rebol Rexx Scala Squirrel Stax Uiua Umka Vala Vyxal Bytes Chars Scoring Bytes Chars Language All ><> ALGOL 68 Assembly AWK Bash BASIC Berry brainfuck C C# C++ Civet Clojure COBOL Coconut Common Lisp Crystal D Dart Elixir Erlang F# Factor Forth Fortran Gleam Go GolfScript Groovy Haskell Hexagony J Janet Java JavaScript jq Julia K Kotlin Lua Nim OCaml Pascal Perl PHP PowerShell Prolog Python R Raku Rockstar Ruby Rust Scheme sed SQL Swift Tcl TeX V VimL Wren Zig Experimental Language 05AB1E APL ArkScript Arturo Befunge BQN CJam CoffeeScript Egel Fennel Harbour Hare Haxe Hush Hy iogii Knight Lily Luau Odin Picat Qore Racket Rebol Rexx Scala Squirrel Stax Uiua Umka Vala Vyxal Hole All 12 Days of Christmas 24 Game 99 Bottles of Beer Abundant Numbers Abundant Numbers (Long) Arabic to Roman Arithmetic Numbers Arrows Ascending Primes ASCII Table Billiards brainfuck Calendar Card Number Validation Catalan Numbers Catalan’s Constant Christmas Trees Collatz Continued Fractions CSS Colors Cubes Day of Week DFA Simulator Diamonds Divisors Emirp Numbers Emirp Numbers (Long) Emojify Evil Numbers Evil Numbers (Long) Factorial Factorisation Farey Sequence Fibonacci Fizz Buzz Foo Fizz Buzz Bar Forsyth–Edwards Notation Fractions Game of Life Gijswijt’s Sequence Happy Numbers Happy Numbers (Long) Hexdump Hilbert Curve Intersection Inventory Sequence ISBN Jacobi Symbol Kaprekar Numbers Kolakoski Constant Kolakoski Sequence Leap Years Levenshtein Distance Leyland Numbers ln 2 Look and Say Lucky Numbers Lucky Tickets Mahjong Mandelbrot Maze Medal Tally Minesweeper Morse Decoder Morse Encoder Multitap Input Musical Chords N Queens Niven Numbers Niven Numbers (Long) Number Spiral Odious Numbers Odious Numbers (Long) Ordinal Numbers PalindromemordnilaP Pangram Grep Partition Numbers Pascal’s Triangle Pernicious Numbers Pernicious Numbers (Long) Poker Polyominoes Prime Numbers Prime Numbers (Long) Proximity Grid QR Decoder Quine Recamán Repeating Decimals Reverse Polish Notation Reversi Rijndael S-box Rock-paper-scissors-Spock-lizard Roman to Arabic ROT13 Rule 110 Scrambled Sort Set Seven Segment SI Units Sierpiński Triangle Smith Numbers Spelling Numbers Star Wars GPT Star Wars Opening Crawl Sudoku Sudoku (Fill-in) Ten-pin Bowling Tic-tac-toe Time Distance Tongue-twisters Topological Sort Tower of Hanoi Transpose Sentence Trinomial Triangle United States Vampire Numbers Van Eck Sequence Zeckendorf Representation Zodiac Signs γ λ π τ φ √2 𝑒 Experimental Hole Alphabetic Numbers Apéry’s Constant Binary Lambda Calculus Connect Four Crossword CSS Colors (Inverse) CSS Grid Ellipse Perimeters Flags Floyd-Steinberg Dithering Gray Code Decoder Gray Code Encoder Hexagonal Spiral Highly Composite Numbers NFA Simulator Numbrix Odd Polyomino Tiling p-adic Expansion Polygon Triangulations QR Encoder Quadratic Formula Semiprime Numbers Smooth Numbers Snake Sphenic Numbers Taxicab Numbers Turtle Tutorial # Golfer Points Bytes Time Submitted 1st JayXon 🇺🇸 1,000 73 56ms 10 Mar 2025 2nd solmyr2000 986 74 53ms 21 Jun 2022 3rd primo-ppcg 🇹🇭 961 76 50ms 18 Jan 2022 3rd inventshah 961 76 56ms 22 Nov 2022 3rd KasperKivimaeki 🇫🇮 961 76 438ms 19 Nov 2025 6th prplz 🇦🇺 948 77 53ms 2 Jan 2022 6th nwellnhof 🇩🇪 948 77 54ms 3 Jan 2022 6th michael-pruglo 🇺🇦 948 77 57ms 13 Jul 2022 6th xsot 🇸🇬 948 77 429ms 30 Jan 2024 6th snyderek 🇺🇸 948 77 52ms 13 Oct 2024 6th Herbert00709 🇵🇱 948 77 54ms 16 Oct 2024 6th wojtekmal 948 77 53ms 6 Sep 2025 13th Irratix 🇳🇱 936 78 51ms 3 Aug 2023 13th m-tkach 🇺🇦 936 78 409ms 12 Oct 2023 13th roupiq 🇵🇱 936 78 52ms 14 Apr 2024 13th ovs-code 🇩🇪 936 78 54ms 4 May 2024 13th sean-niemann 🇺🇸 936 78 57ms 17 Jan 2025 13th emgordon154 936 78 57ms 27 days ago 19th iakolzin 924 79 54ms 2 Jun 2022 19th Steffan153 🇫🇮 924 79 54ms 30 Oct 2022 19th DialFrost 🇸🇬 924 79 57ms 3 Nov 2023 22nd CatsAreFluffy 913 80 54ms 18 Feb 2023 22nd AdrienHache 🇫🇷 913 80 56ms 6 Jan 2024 22nd SadiinsoSnowfall 🇫🇷 913 80 54ms 5 Mar 2024 22nd oceko 913 80 53ms 5 Mar 2024 22nd tailorspy 913 80 58ms 5 Aug 2024 22nd qwertyuiop3 🇷🇺 913 80 55ms 15 May 2025 22nd fuzzylojik-golf 🇺🇸 913 80 57ms 14 Aug 2025 29th janbehrens 🇩🇪 901 81 56ms 8 Jan 2022 29th jared-hughes 901 81 58ms 24 Oct 2022 29th Yewzir 🇧🇪 901 81 56ms 20 May 2023 29th Betuaredead 901 81 55ms 14 Nov 2023 29th zygoloid 901 81 52ms 4 Aug 2024 29th lailai0916 901 81 442ms 17 Aug 2024 29th pardouin 🇫🇷 901 81 57ms 24 Aug 2024 36th MeWhenI 🇻🇦 890 82 56ms 8 May 2022 36th Alex-x90 🇺🇸 890 82 54ms 20 Sep 2022 36th annaproxy 890 82 53ms 7 Jan 2023 36th Shanethegamer 🇺🇸 890 82 55ms 29 Mar 2023 36th byronknoll 🇺🇸 890 82 56ms 1 Feb 2024 36th dokutan 890 82 59ms 14 Jul 2025 42nd jxy2012 880 83 417ms 27 Aug 2024 43rd ndren 869 84 56ms 2 Aug 2023 43rd CornerMercury 🇬🇧 869 84 54ms 2 Aug 2023 45th H3Rol4x 830 88 55ms 23 Dec 2022 45th timhaj 🇸🇮 830 88 56ms 17 Sep 2025 47th MateuszPietrzak 🇵🇱 820 89 58ms 28 Jan 2024 48th Ripick 793 92 54ms 23 Jul 2022 48th retrohun 793 92 54ms 28 Dec 2022 48th luuumine 🇫🇷 793 92 60ms 10 Dec 2025 51st Seek64 🇩🇪 785 93 57ms 15 Nov 2022 51st bac0id 785 93 55ms 23 Feb 2024 53rd Re-Adventures 🇮🇳 768 95 54ms 2 Jan 2022 53rd veehz 768 95 53ms 21 Feb 2023 53rd snoozingnewt 🇨🇦 768 95 434ms 6 Oct 2025 56th gjoacorp 🇬🇧 760 96 56ms 3 Aug 2025 57th cmayer777 753 97 55ms 7 Nov 2022 57th astdefu 753 97 58ms 13 Dec 2022 57th HumanoidCPU 753 97 59ms 3 Feb 2024 60th f-tucker 745 98 55ms 8 Jan 2024 61st MaxElf999 737 99 57ms 12 Dec 2022 61st namcartoon06 737 99 54ms 15 Jul 2023 63rd ei14 730 100 56ms 18 Jun 2022 64th Domicnt 723 101 56ms 16 Feb 2023 64th novaspaced 723 101 62ms 30 Jan 2026 66th Walter225 716 102 58ms 10 Jul 2023 67th JGDoerrer 709 103 433ms 5 Jan 2022 67th tomh1012 709 103 1,406ms 14 days ago 69th jorbDehmel 🇺🇸 695 105 57ms 17 Jun 2023 69th BpbjsGreen 🇨🇳 695 105 55ms 7 Jul 2024 71st CaedenHarper 🇨🇦 689 106 53ms 23 Jan 2025 71st balloffur 689 106 437ms 23 Dec 2025 73rd SnivyLlama 682 107 443ms 28 May 2022 73rd osmith93 682 107 54ms 14 Jun 2022 75th msbranicky 676 108 55ms 22 Aug 2023 75th nents 676 108 439ms 24 Jan 2025 75th matejmatik123 🇸🇰 676 108 1,303ms 26 Sep 2025 78th inverseLorentz 🇦🇺 652 112 61ms 12 Oct 2023 78th Andrey2001 652 112 56ms 29 Jan 2026 80th 0dyse 646 113 60ms 29 Apr 2025 1–80 of 125 Next Last