Linked Questions

19 votes
50 answers

What's the time, chap?

I honestly cannot believe that this is not a question yet on Code Golf, but.... Print the local time (with a.m. or p.m.) as a string to the console, preceded by "It's ". Example: ...
Daniel's user avatar
  • 6,719
27 votes
36 answers

Primes with prime bit-counts

Task Find all the non-negative integers up to and including a given non-zero positive integer n, that are prime and the count of 1's and ...
Gurupad Mamadapur's user avatar
46 votes
15 answers

Tips for Creating/Maintaining a Golfing Language

Creating a golfing language can be hard. Let's help budding golfing language creators out and provide some helpful tips on how to create one. I'm looking for tips on: The design process ...
lyxal's user avatar
  • 33.6k
31 votes
29 answers

Is this a Smith number?

Challenge description A Smith number is a composite number whose sum of digits is equal to the sum of sums of digits of its prime factors. Given an integer N, ...
shooqie's user avatar
  • 5,652
39 votes
24 answers

Print the nth prime that contains n

This question will be a twist on finding the nth prime number. Challenge You must write a program that will take one input n, ...
ericw31415's user avatar
  • 2,302
26 votes
31 answers

Magnanimous numbers

Given an positive integer as input determine if it is a magnanimous number. A magnanimous number is a number such that any insertion of a + sign between any two ...
Wheat Wizard's user avatar
  • 98.8k
22 votes
26 answers

List Prime Numbers [duplicate]

Introduction Prime numbers are simple, right? Well, now you get your chance to find out! Challenge You must write a program or function that takes an input n and ...
Elliot A.'s user avatar
  • 454
17 votes
34 answers

The program that will find the next prime number

Intro: You accidentally corrupted the flow of time with a device you made for fun, that turned out to be a time machine. As a result, you got pushed to the far future. You realized that computing, ...
Offtkp's user avatar
  • 3,062
26 votes
26 answers

Get thee behind me Satan-Prime!

Satan-Primes who are they? they are Primes containing 666 these are Satan-Primes:...
user avatar
27 votes
21 answers

It almost works (Cops' Thread)

Robbers' Thread Your challenge is to find an existing challenge, and implement it in a way such that certain inputs fail. At least one input must not produce the correct output (use the other ...
emanresu A's user avatar
  • 38.8k
15 votes
36 answers

Generate Sexy Primes

Sexy Primes are pairs of numbers \$(n, n+6)\$ such as \$n\$ and \$n+6\$ are both prime You need to create a function which will take an integer, check for sexy primes from 0 to that integer, and ...
Rohit's user avatar
  • 263
46 votes
12 answers

Prime parity peregrination

The purpose of this challenge is to graphically depict a walk on the plane, where the direction of each step \$k\$ is determined by the primality of \$k\$ and the parity of its binary expansion. ...
Luis Mendo's user avatar
  • 105k
19 votes
30 answers

Cops and Robbers: Redacted Primality (Cops' Thread)

This challenge was originally sandboxed by Magic Octopus Urn; I adopted and posted it with his permission. This is the cops' thread. The robbers' thread is here. The challenge Step One: Write a ...
MD XF's user avatar
  • 13.9k
18 votes
31 answers

Finding Not-Quite-Prime Numbers

Your challenge, should you chose to accept it, is to code-golf a function that returns true or false (or some similar meaningful representation of yes and no) if a number meets the following criteria: ...
Mr. Llama's user avatar
  • 2,429
36 votes
17 answers

Primes other than Optimus

Challenge Given an input integer n > 0, output the number of primes (other than n, if n ...
AdmBorkBork's user avatar
  • 43.4k

15 30 50 per page