Skip to content

Instantly share code, notes, and snippets.

View lucablackwell's full-sized avatar
🌸
Did you know you have rights? The constitution says you do, and so do I!

Luca Blackwell lucablackwell

🌸
Did you know you have rights? The constitution says you do, and so do I!
View GitHub Profile
@miguelmota
miguelmota / primes.json
Created December 15, 2015 02:31
Array of first 1,000 prime numbers
[
2,
3,
5,
7,
11,
13,
17,
19,
23,
@discoveryluca
discoveryluca / DivisibleBy.php
Last active June 9, 2024 09:46
DivisibleBy kata - 11988 tests that run in under 3 seconds, from 302 lines of code, using dataProviders
<?php
namespace App;
class DivisibleBy
{
public function isDivisibleByTwo($number)
{
// if last number is divisible by 2
return is_int(substr($number, -1) / 2);