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 NFA Simulator 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 NFA Simulator 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 55ms 10 Mar 2025 2nd solmyr2000 986 74 56ms 21 Jun 2022 2nd 09cf 986 74 4,994ms 22 Nov 2023 4th primo-ppcg 🇹🇭 961 76 57ms 18 Jan 2022 4th inventshah 961 76 55ms 22 Nov 2022 4th KasperKivimaeki 🇫🇮 961 76 380ms 15 days ago 7th prplz 🇦🇺 948 77 55ms 2 Jan 2022 7th nwellnhof 🇩🇪 948 77 57ms 3 Jan 2022 7th michael-pruglo 🇺🇦 948 77 58ms 13 Jul 2022 7th xsot 🇸🇬 948 77 383ms 30 Jan 2024 7th snyderek 🇺🇸 948 77 59ms 13 Oct 2024 7th Herbert00709 🇵🇱 948 77 56ms 16 Oct 2024 7th wojtekmal 948 77 52ms 6 Sep 2025 14th Irratix 🇳🇱 936 78 56ms 3 Aug 2023 14th m-tkach 🇺🇦 936 78 375ms 12 Oct 2023 14th roupiq 🇵🇱 936 78 55ms 14 Apr 2024 14th ovs-code 🇩🇪 936 78 56ms 4 May 2024 14th sean-niemann 🇺🇸 936 78 55ms 17 Jan 2025 19th iakolzin 924 79 56ms 2 Jun 2022 19th Steffan153 🇫🇮 924 79 54ms 30 Oct 2022 19th DialFrost 🇸🇬 924 79 51ms 3 Nov 2023 19th Mandrzejy 🇵🇱 924 79 4,984ms 16 Oct 2024 23rd CatsAreFluffy 913 80 56ms 18 Feb 2023 23rd SirBogman 🇺🇸 913 80 56ms 3 Jan 2024 23rd AdrienHache 🇫🇷 913 80 57ms 6 Jan 2024 23rd SadiinsoSnowfall 🇫🇷 913 80 75ms 5 Mar 2024 23rd oceko 913 80 57ms 5 Mar 2024 23rd tailorspy 913 80 55ms 5 Aug 2024 23rd qwertyuiop3 🇷🇺 913 80 54ms 15 May 2025 23rd fuzzylojik-golf 🇺🇸 913 80 57ms 14 Aug 2025 31st janbehrens 🇩🇪 901 81 57ms 8 Jan 2022 31st jared-hughes 901 81 58ms 24 Oct 2022 31st Yewzir 🇧🇪 901 81 55ms 20 May 2023 31st Betuaredead 901 81 57ms 14 Nov 2023 31st zygoloid 901 81 55ms 4 Aug 2024 31st lailai0916 901 81 383ms 17 Aug 2024 31st pardouin 🇫🇷 901 81 55ms 24 Aug 2024 38th MeWhenI 🇻🇦 890 82 57ms 8 May 2022 38th Alex-x90 🇺🇸 890 82 58ms 20 Sep 2022 38th annaproxy 890 82 53ms 7 Jan 2023 38th Shanethegamer 🇺🇸 890 82 57ms 29 Mar 2023 38th byronknoll 🇺🇸 890 82 54ms 1 Feb 2024 38th dokutan 890 82 56ms 14 Jul 2025 44th jxy2012 880 83 380ms 27 Aug 2024 45th ndren 869 84 57ms 2 Aug 2023 45th CornerMercury 🇬🇧 869 84 54ms 2 Aug 2023 47th H3Rol4x 830 88 60ms 23 Dec 2022 47th timhaj 🇸🇮 830 88 55ms 17 Sep 2025 49th MateuszPietrzak 🇵🇱 820 89 54ms 28 Jan 2024 50th Ripick 793 92 57ms 23 Jul 2022 50th retrohun 793 92 57ms 28 Dec 2022 52nd Seek64 🇩🇪 785 93 62ms 15 Nov 2022 52nd bac0id 785 93 56ms 23 Feb 2024 54th luuumine 🇫🇷 777 94 58ms 17 days ago 55th Re-Adventures 🇮🇳 768 95 59ms 2 Jan 2022 55th veehz 768 95 60ms 21 Feb 2023 55th snoozingnewt 🇨🇦 768 95 372ms 6 Oct 2025 58th gjoacorp 🇬🇧 760 96 57ms 3 Aug 2025 59th cmayer777 753 97 55ms 7 Nov 2022 59th astdefu 753 97 59ms 13 Dec 2022 59th HumanoidCPU 753 97 63ms 3 Feb 2024 62nd f-tucker 745 98 58ms 8 Jan 2024 63rd MaxElf999 737 99 58ms 12 Dec 2022 63rd namcartoon06 737 99 56ms 15 Jul 2023 65th ei14 730 100 63ms 18 Jun 2022 66th Domicnt 723 101 60ms 16 Feb 2023 67th Walter225 716 102 60ms 10 Jul 2023 68th JGDoerrer 709 103 370ms 5 Jan 2022 69th tomh1012 702 104 957ms 31 Mar 2022 70th jorbDehmel 🇺🇸 695 105 61ms 17 Jun 2023 70th BpbjsGreen 🇨🇳 695 105 61ms 7 Jul 2024 72nd CaedenHarper 🇨🇦 689 106 51ms 23 Jan 2025 73rd SnivyLlama 682 107 399ms 28 May 2022 73rd osmith93 682 107 57ms 14 Jun 2022 75th msbranicky 676 108 57ms 22 Aug 2023 1–75 of 124 Next Last