Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [new-years]

Puzzles that are themed around the new year.

41
votes
15answers
5k views

Determine whether a number is 2017-friable without primes in your source code

Out of all the years I've been making this challenge, 2017 is the first year that's been a prime number. So the question will be about prime numbers and their properties. Your task is to produce a ...
10
votes
1answer
271 views

Print the current time… taking leap seconds into account

(Note: although related, this challenge is not a duplicate of this one because it requires determining leap seconds automatically rather than hardcoding their times, and is not a duplicate of this one ...
16
votes
9answers
755 views

Grow Till It's 2017

In this challenge you'll be building a program that grows as it traverses through the ages… Until it's 2017. Challenge Whenever this challenge description says “program”, you can ...
17
votes
4answers
795 views

2017 is Almost Here!

Challenge The challenge is simple: Taking no inputs and output the following message: _ __ __ | | | | | |_ |__| | | A number of times ...
-8
votes
13answers
581 views

Count up from 0 to 2017 without numbers in your source

This question was profoundly inspired by Joe Z's question. But, with a twist... So, now that it's almost 2017, it's time for a code question involving the number 2017. Your task is to make a ...
12
votes
22answers
2k views

10 9 8 7 6 5 4 3 2 1… Print 2016

As a spin-off to my challenge over at Puzzling, your goal is to output 2016. Rules: You must include the numbers ...
0
votes
14answers
921 views

It's Not 2015 Anymore!

The Rules Each submission must be a full program or a function. The program must take all instances of the string 2015 from the input (1 string), replace it with <...
17
votes
5answers
3k views

Mine for 2016 in Bitcoins! PCG.SE New Year's Puzzle 2016

In the Bitcoin protocol, 2016 is a very special number. The "difficulty" of finding a hash to create a new block is adjusted every 2,016 blocks to approximate changing once every two weeks. This ...
5
votes
2answers
206 views

Waiting for 2016 [duplicate]

Task Constantly having to check on television, or the time on your computer to see if its 2016 is a tedious task. Being programmers, we should be able to automate this task. Write a program that will ...
-3
votes
3answers
432 views

Does the string contain 2016? [closed]

Given a string input, your task is to write a program that prints a truthy value to STDOUT or equivalent if the input contains "2016" anywhere in it without using any built-in ...
40
votes
32answers
4k views

Advance Happy New Year, 2016!

Your input will be a integer between 1970 and 2090 (inclusive), representing a year. Your program should output the next year on which New Years Day falls on the same day of the week as the input year....
33
votes
14answers
3k views

Morse the New Year

This is Weekly Challenge #1. Theme: Audio Processing Your task is to write a program, which writes an audio file to disc (in a format of your choice), which contains the Morse code for ...
23
votes
14answers
2k views

Recycling for the New Year

A good resolution for 2015 is to live more sustainably. We'll start by recycling. Recycling code, that is! Your task is to print the number 2015 to STDOUT, with or ...
29
votes
4answers
3k views

Eternal 2014 — PCG.SE New Year’s Puzzle 2015

So, now that it's 2015, and a bunch of answers from last year's puzzle are now starting to produce invalid output, it's time for a question involving the number 2015. Except... why? Wouldn't you like ...
8
votes
12answers
782 views

What year is it?

It is December 2014, and 2015 has almost started. However, it appears not everyone has realized this. But the people of PPCG come to the rescue! Input Your program is given a grid like the one one ...
15
votes
6answers
2k views

Output 2015 as QR code

Mission is simple. Just output number 2015 as QR code and write it to file named newyear.png in PNG format. Code must be valid any day, so maybe you shall not use ...
10
votes
4answers
1k views

Produce the number 2014 from an image

In the 2014 challenge, Michael Stern suggests using OCR to parse to 2014. I'd like to take this challenge in a different direction. Using built-in OCR from the language/standard library of your ...
558
votes
254answers
202k views

Produce the number 2014 without any numbers in your source code

Note to challenge writers as per meta consensus: This question was well-received when it was posted, but challenges like this, asking answerers to Do X without using Y are likely to be poorly ...
113
votes
40answers
16k views

Write a program that always outputs “2012” - even if it's modified!

This idea is not mine, though I don't know where it originated. I once met it in a programming contest very long ago (1998, if I remember correctly). The task is to write a program in your favorite ...