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 Card Number Validation Catalan Numbers Catalan’s Constant Christmas Trees Collatz 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 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 𝑒 Apéry’s Constant Binary Lambda Calculus Calendar Connect Four Continued Fractions Crossword CSS Colors (Inverse) CSS Grid Ellipse Perimeters Flags Floyd-Steinberg Dithering Gray Code Decoder Gray Code Encoder Hexagonal Spiral Highly Composite Numbers Multitap Input 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 ><> 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 ALGOL 68 APL Arturo Befunge BQN CJam CoffeeScript Egel Fennel Harbour Hare Haxe Hush Hy iogii Knight Luau Odin Picat Qore Racket Rebol Rexx Scala Squirrel Stax Uiua Umka Vala Vyxal Bytes Chars Scoring Bytes Chars Language All ><> 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 ALGOL 68 APL Arturo Befunge BQN CJam CoffeeScript Egel Fennel Harbour Hare Haxe Hush Hy iogii Knight 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 Card Number Validation Catalan Numbers Catalan’s Constant Christmas Trees Collatz 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 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 Apéry’s Constant Binary Lambda Calculus Calendar Connect Four Continued Fractions Crossword CSS Colors (Inverse) CSS Grid Ellipse Perimeters Flags Floyd-Steinberg Dithering Gray Code Decoder Gray Code Encoder Hexagonal Spiral Highly Composite Numbers Multitap Input 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 82ms 10 Mar 2025 2nd solmyr2000 986 74 54ms 21 Jun 2022 2nd 09cf 986 74 4,994ms 22 Nov 2023 4th primo-ppcg 🇹🇭 961 76 56ms 18 Jan 2022 4th inventshah 961 76 79ms 22 Nov 2022 4th KasperKivimaeki 🇫🇮 961 76 407ms 19 Nov 2025 7th prplz 🇦🇺 948 77 57ms 2 Jan 2022 7th nwellnhof 🇩🇪 948 77 58ms 3 Jan 2022 7th michael-pruglo 🇺🇦 948 77 63ms 13 Jul 2022 7th xsot 🇸🇬 948 77 423ms 30 Jan 2024 7th snyderek 🇺🇸 948 77 63ms 13 Oct 2024 7th Herbert00709 🇵🇱 948 77 77ms 16 Oct 2024 7th wojtekmal 948 77 79ms 6 Sep 2025 14th Irratix 🇳🇱 936 78 56ms 3 Aug 2023 14th m-tkach 🇺🇦 936 78 378ms 12 Oct 2023 14th roupiq 🇵🇱 936 78 64ms 14 Apr 2024 14th ovs-code 🇩🇪 936 78 70ms 4 May 2024 14th sean-niemann 🇺🇸 936 78 59ms 17 Jan 2025 19th iakolzin 924 79 62ms 2 Jun 2022 19th Steffan153 🇫🇮 924 79 77ms 30 Oct 2022 19th DialFrost 🇸🇬 924 79 69ms 3 Nov 2023 19th Mandrzejy 🇵🇱 924 79 4,998ms 16 Oct 2024 23rd CatsAreFluffy 913 80 77ms 18 Feb 2023 23rd AdrienHache 🇫🇷 913 80 73ms 6 Jan 2024 23rd SadiinsoSnowfall 🇫🇷 913 80 79ms 5 Mar 2024 23rd oceko 913 80 64ms 5 Mar 2024 23rd tailorspy 913 80 68ms 5 Aug 2024 23rd qwertyuiop3 🇷🇺 913 80 71ms 15 May 2025 23rd fuzzylojik-golf 🇺🇸 913 80 78ms 14 Aug 2025 30th janbehrens 🇩🇪 901 81 55ms 8 Jan 2022 30th jared-hughes 901 81 60ms 24 Oct 2022 30th Yewzir 🇧🇪 901 81 75ms 20 May 2023 30th Betuaredead 901 81 64ms 14 Nov 2023 30th zygoloid 901 81 81ms 4 Aug 2024 30th lailai0916 901 81 443ms 17 Aug 2024 30th pardouin 🇫🇷 901 81 53ms 24 Aug 2024 37th MeWhenI 🇻🇦 890 82 64ms 8 May 2022 37th Alex-x90 🇺🇸 890 82 65ms 20 Sep 2022 37th annaproxy 890 82 79ms 7 Jan 2023 37th Shanethegamer 🇺🇸 890 82 79ms 29 Mar 2023 37th byronknoll 🇺🇸 890 82 67ms 1 Feb 2024 37th dokutan 890 82 55ms 14 Jul 2025 43rd jxy2012 880 83 592ms 27 Aug 2024 44th ndren 869 84 63ms 2 Aug 2023 44th CornerMercury 🇬🇧 869 84 66ms 2 Aug 2023 46th H3Rol4x 830 88 61ms 23 Dec 2022 46th timhaj 🇸🇮 830 88 74ms 17 Sep 2025 48th MateuszPietrzak 🇵🇱 820 89 70ms 28 Jan 2024 49th Ripick 793 92 68ms 23 Jul 2022 49th retrohun 793 92 73ms 28 Dec 2022 49th luuumine 🇫🇷 793 92 56ms 7 days ago 52nd Seek64 🇩🇪 785 93 76ms 15 Nov 2022 52nd bac0id 785 93 65ms 23 Feb 2024 54th Re-Adventures 🇮🇳 768 95 78ms 2 Jan 2022 54th veehz 768 95 82ms 21 Feb 2023 54th snoozingnewt 🇨🇦 768 95 445ms 6 Oct 2025 57th gjoacorp 🇬🇧 760 96 58ms 3 Aug 2025 58th cmayer777 753 97 63ms 7 Nov 2022 58th astdefu 753 97 65ms 13 Dec 2022 58th HumanoidCPU 753 97 76ms 3 Feb 2024 61st f-tucker 745 98 63ms 8 Jan 2024 62nd MaxElf999 737 99 67ms 12 Dec 2022 62nd namcartoon06 737 99 65ms 15 Jul 2023 64th ei14 730 100 63ms 18 Jun 2022 65th Domicnt 723 101 74ms 16 Feb 2023 66th Walter225 716 102 64ms 10 Jul 2023 67th JGDoerrer 709 103 423ms 5 Jan 2022 68th tomh1012 702 104 1,014ms 31 Mar 2022 69th jorbDehmel 🇺🇸 695 105 78ms 17 Jun 2023 69th BpbjsGreen 🇨🇳 695 105 76ms 7 Jul 2024 71st CaedenHarper 🇨🇦 689 106 58ms 23 Jan 2025 72nd SnivyLlama 682 107 552ms 28 May 2022 72nd osmith93 682 107 79ms 14 Jun 2022 74th msbranicky 676 108 77ms 22 Aug 2023 74th nents 676 108 583ms 24 Jan 2025 1–75 of 124 Next Last