Skip to content

Instantly share code, notes, and snippets.

Peter K. Shultz pkshultz

Block or report user

Report or block pkshultz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
pkshultz /
Last active Dec 22, 2019
Retrieve links to a user's liked tweets
import tweepy
consumer_key = ""
consumer_secret = ""
access_token = ""
access_token_secret = ""
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)

Keybase proof

I hereby claim:

  • I am pkshultz on github.
  • I am pkshultz ( on keybase.
  • I have a public key ASA2ihGPq1uybkPVYmOSZ6caheYixamsdTc-JZWTS_qmQAo

To claim this, I am signing this object:

pkshultz /
Created Mar 26, 2015
Sieve of Eratosthenes
// Sieve of Eratosthenes
public int sieve_of_eratosthenes(int input)
boolean [] is_prime = new boolean [input];
int number_of_primes = 0;
// Set all values to true
Arrays.fill(is_prime, Boolean.TRUE)
You can’t perform that action at this time.